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