n = input() s = "" if n<26: print chr(n+65) else: while 1: s = chr((n%26 if n>25 else n-1)+65)+s n /= 26 if not n: break print s