n = input() s = "" while 1: s = chr((n%26 if n>25 else n-1)+65)+s n /= 26 if not n: break print s