N = int(input()) v = N + 1 ans = '' while v > 0: v -= 1 m = v % 26 ans += chr(m + ord('A')) v //= 26 print(ans)