L = 'yukicoder'.chars.map.with_index { |c, idx| [idx + 1, c] }.to_h loop { i = gets.to_i break if i == 0 puts L[i] }