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