def main(): N = int(input()) n = N ans = '' while n >= 0: n, m = divmod(n, 26) ans = chr(m + 65) + ans n -= 1 print(ans) main()