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