N = int(input())
s = ""
while N > 25:
    s += chr(N%26 + 65)
    N = N//26 -1
s += chr(N%26 + 65)
print(s[::-1])