A = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" N = int(input())+1 ans = "" while N != 0: if (N)%26==0: x = 0 N -= 1 else: x = N%26 ans += A[x-1] N //=26 print(ans[::-1])