n = gets.to_i base = 'A'.ord while n > 25 current = n / 26 print (base - 1 + current).chr n -= current * 26 end print (base + n).chr print "\n"