gets v = gets.split.zip(gets.split).map{|x| x[0] != x[1] ? x : nil} p (x = v.find_index {|n| n != nil}) + 1 v[x].each{|x| puts x}