import java.util.Scanner var input = Scanner(System. `in`) fun inputList(testCase: Int): MutableList{ var list: MutableList = mutableListOf() for(i in 1..testCase) list.add( input.next() ) return list } fun jugdeWrong(list: MutableList): String{ var result: String = "" for( (index, value) in list.withIndex() ){ var str = input.next() if(value != str) result = "${index + 1}\n$value\n$str" } return result } fun main(args: Array){ var testCase: Int = input.nextInt() var list: MutableList = inputList(testCase) println( jugdeWrong(list) ) }