a = "yukicoder" ary = a.split(//) input = gets.chomp ary2 = input.split(//) for i in 0..8 if ary2[i] == "?" puts ary[i] break end end