fun main() {
    val n = readLine()!!.toLong()
    var e = ""
    var copyN = n
    while(copyN > 0){
        copyN -= 1
        e = (copyN % 26 + 97).toChar() + e
        copyN /= 26
    }

    println(e)
}