main = readLn >>= putStrLn.answer

alphabet = ['a'..'z']

answer = map ((!!) alphabet) . reverse . decTo26

decTo26 v
    | v < 26 = [v-1]
    | otherwise = a-1 : decTo26 (div (v-a) 26) where 
        a = mod v 26