{"problem":{"name":"Spot the Difference","description":{"content":"You are given two grids, each with $N$ rows and $N$ columns, referred to as grid $A$ and grid $B$.   Each cell in the grids contains a lowercase English letter.   The character at the $i$\\-th row and ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc351_b"},"statements":[{"statement_type":"Markdown","content":"You are given two grids, each with $N$ rows and $N$ columns, referred to as grid $A$ and grid $B$.  \nEach cell in the grids contains a lowercase English letter.  \nThe character at the $i$\\-th row and $j$\\-th column of grid $A$ is $A_{i, j}$.  \nThe character at the $i$\\-th row and $j$\\-th column of grid $B$ is $B_{i, j}$.\nThe two grids differ in exactly one cell. That is, there exists exactly one pair $(i, j)$ of positive integers not greater than $N$ such that $A_{i, j} \\neq B_{i, j}$. Find this $(i, j)$.\n\n## Constraints\n\n*   $1 \\leq N \\leq 100$\n*   $A_{i, j}$ and $B_{i, j}$ are all lowercase English letters.\n*   There exists exactly one pair $(i, j)$ such that $A_{i, j} \\neq B_{i, j}$.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$N$\n$A_{1,1}A_{1,2}\\dots A_{1,N}$\n$A_{2,1}A_{2,2}\\dots A_{2,N}$\n$\\vdots$\n$A_{N,1}A_{N,2}\\dots A_{N,N}$\n$B_{1,1}B_{1,2}\\dots B_{1,N}$\n$B_{2,1}B_{2,2}\\dots B_{2,N}$\n$\\vdots$\n$B_{N,1}B_{N,2}\\dots B_{N,N}$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc351_b","tags":[],"sample_group":[["3\nabc\ndef\nghi\nabc\nbef\nghi","2 1\n\nFrom $A_{2, 1} =$ `d` and $B_{2, 1} =$ `b`, we have $A_{2, 1} \\neq B_{2, 1}$, so $(i, j) = (2, 1)$ satisfies the condition in the problem statement."],["1\nf\nq","1 1"],["10\neixfumagit\nvtophbepfe\npxbfgsqcug\nugpugtsxzq\nbvfhxyehfk\nuqyfwtmglr\njaitenfqiq\nacwvufpfvv\njhaddglpva\naacxsyqvoj\neixfumagit\nvtophbepfe\npxbfgsqcug\nugpugtsxzq\nbvfhxyehok\nuqyfwtmglr\njaitenfqiq\nacwvufpfvv\njhaddglpva\naacxsyqvoj","5 9"]],"created_at":"2026-03-03 11:01:13"}}