alp = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" N = int(input()) ans = alp[N % 26] N //= 26 while N > 0: ans += alp[(N - 1) % 26] N -= 1 N //= 26 print(ans[::-1])