class Yukicoder def initialize n = gets.to_i n += 1 answer = "" while n > 0 n -= 1 answer += (n%26 + 10).to_s(36).upcase n /= 26 end puts answer.reverse end end Yukicoder.new