using System; using System.Linq; using System.Collections.Generic; static class Program{ static void Main(){ new Magatro().Solve(); } } class Magatro{ private int N; private string[] A,B; private void Scan(){ N = int.Parse(Console.ReadLine()); A = Console.ReadLine().Split(' '); B = Console.ReadLine().Split(' '); } public void Solve(){ Scan(); for(int i = 0;i < N;i++){ if (A[i] != B[i]){ Console.WriteLine(i+1); Console.WriteLine($"{A[i]}\n{B[i]}"); } } } }