n=gets.to_i a=gets.split(/\s/) b=gets.split(/\s/) a.zip(b).each_with_index{|w,i|puts "#{i+1}\n#{w[0]}\n#{w[1]}" if w[0]!=w[1]}