main()
{
char s[101];
int i;
gets(s);
for(i=0;s[i]!='\0';s[i++]+=5);
puts(s);
for(i=0;s[i]!='\0';s[i++]-=5);
printf("\n");
}