object Main extends App {
  val sc = new java.util.Scanner(System.in)
  var n = sc.nextLong()
  var ans = ""

  while (n > 0) {
    ans = s"${('a' + (n % 26) - 1).toChar}$ans"
    n /= 26
  }

  println(ans)
}
