def f(n): cs = [] x = n + 1 while x > 0: x, m = divmod(x-1, 26) cs.append(m) return ''.join(reversed([chr(c + ord('A')) for c in cs])) N = int(input()) print(f(N))