N=gets.to_i S=gets.split T=gets.split S.zip(T).each.with_index(1) do |e,i| puts "#{i}\n#{e[0]}\n#{e[1]}" if e[0] != e[1] end