n = input() s = "" f = lambda x: (26**x - 26)/25 x = 1 while f(x+1)<=n: x += 1 n -= f(x) for i in xrange(x): s = chr(n%26+65)+s n /= 26 print s