package net.ipipip0129.yukicoder.no547; import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args){ //インプット Scanner scan = new Scanner(System.in); int wordCount = Integer.parseInt(scan.nextLine()); List list_A = Arrays.asList(scan.nextLine().split(" ")); List list_B = Arrays.asList(scan.nextLine().split(" ")); for (int i = 0; i < wordCount; i++) { if (!list_A.get(i).equalsIgnoreCase(list_B.get(i))){ System.out.println(i); System.out.println(list_A.get(i)); System.out.println(list_B.get(i)); } } } }