N = int(input()) ac = ord("A") tmp = [] while 1: tmp.append(chr(ac + N % 26)) N //= 26 N -= 1 if N < 0: break print("".join(tmp[::-1]))