n = gets.to_i sS = gets.chomp.split tS = gets.chomp.split n.times do |index| puts "#{index+1}\n#{sS[index]}\n#{tS[index]}"if sS[index] != tS[index] end