import sys d=0 for c in sys.stdin.read(): i=ord(c) if d==0: d={76:8,85:14,71:20}[i] sys.stdout.write(chr(i if'A'>c or 90