#include <bits/stdc++.h>
using namespace std;
string s;
int n,len;
int main()
{
string s;
int n,len;
cin>>s;
getline(cin,s);
len = s.size();
for(int i=0;i<len;++i)
{
if(s[i]>='F' and s[i]<='Z') s[i]-=5;
else if(s[i]>='A' and s[i]<='E') s[i]+=21;
}
cout<<s;
}