# your code goes here def rn(St): if St=="A": return 1 elif St=="B": return 2 elif St=="C": return 3 elif St=="D": return 4 elif St=="E": return 5 elif St=="F": return 6 elif St=="G": return 7 elif St=="H": return 8 if St=="I": return 9 elif St=="J": return 10 elif St=="K": return 11 elif St=="L": return 12 elif St=="M": return 13 elif St=="N": return 14 elif St=="O": return 15 elif St=="P": return 16 elif St=="Q": return 17 elif St=="R": return 18 elif St=="S": return 19 if St=="T": return 20 elif St=="U": return 21 elif St=="V": return 22 elif St=="W": return 23 elif St=="X": return 24 elif St=="Y": return 25 elif St=="Z": return 26 def nr(n): if n==1: return "A" elif n==2: return "B" elif n==3: return "C" elif n==4: return "D" elif n==5: return "E" elif n==6: return "F" elif n==7: return "G" elif n==8: return "H" elif n==9: return "I" elif n==10: return "J" elif n==11: return "K" elif n==12: return "L" elif n==13: return "M" elif n==14: return "N" elif n==15: return "O" elif n==16: return "P" elif n==17: return "Q" elif n==18: return "R" elif n==19: return "S" elif n==20: return "T" elif n==21: return "U" elif n==22: return "V" elif n==23: return "W" elif n==24: return "X" elif n==25: return "Y" elif n==26: return "Z" S=list (input()) T="" print(S) for i in range(len(S)): i//=26 n=rn(S[i])-i-1 print(n) if n<1: n+=26 T+=nr(n) print (T)