u=unichr while 1:a,b=map(ord,raw_input().decode('U8'));print(u(a-(a-16)%28)+u(b-98*(ord('ZT