N = int(input()) A = "" while N>=0: A += chr(N % 26 + 65) N = (N // 26) - 1 print(''.join(list(reversed(A))))