#include <stdio.h>
#include <ctype.h>
#include <string.h>
int main()
{
char ch[60];
int i;
scanf("%s",ch);
int x=strlen(ch);
for ( i = 0; i < x; i++)
{
if (islower(ch[i]))
{
ch[i]=toupper(ch[i]);
}else if (isupper(ch[i]))
{
ch[i]=tolower(ch[i]);
}
}
int left =0;
int right =x-1;
for ( i = 0; i < x&&left<right; i++)
{
int temp;
temp=ch[i];
ch[i]=ch[x-i-1];
ch[x-i-1]=temp;
left++;
right--;
}
for ( i = 0; i < x; i++)
{
printf("%c",ch[i]+3);
}
}