N=int(input()) buff=N s="" #(65,90) while True: if N > 26: s=s+chr((N%26)+65) N = N//26 else: s=s+chr((N%26)+65) break print(s)