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