while True: try: while True: arr=[] s = input() if(s=='START'): continue elif(s=='END'or s== 'ENDOFINPUT'): break else: for i in s: if 'A'<=i and 'Z'>=i: if i <= 'E': arr.append(chr((ord('Z')-((5-ord(i)+ord('A'))-1)))) else: arr.append(chr((ord(i)-5))) else: arr.append(i) s = ''.join(arr) print(s) if s == 'ENDOFINPUT': break except: break