# Here your code ! S = "yukicoder" s = gets.chomp! s.each_char.with_index do |c,i| if (c == "?") puts S[i] exit end end