gets gets.split.zip(gets.split).each_with_index do |x, i| a, b=x puts "#{i+1}\n#{a}\n#{b}" if a!=b end