n = gets.to_i s = gets.split t = gets.split (0..n-1).each do |i| if s[i] != t[i] puts s[i] puts t[i] end end