n = int(input()) s = chr(65 + n % 26) while n >= 26: s += chr(65 + n//26-1) n //= 26 print(s[::-1])