SP13926 GRIDFLIP - Flipping Slipping of grids

Description

Given two grids of characters , consists of characters from 'a' to 'z' only. we name two grids 'A' and 'B'.

Input Format

First line contains one integer 'n' (n\*n is size of grid) Following n lines (i.e. line numbers 2 to n+1 ) containes strings each of size 'n' for grid 'A'. Following n lines (i.e. line numbers n+2 to 2n+1) containes strings each of size 'n' for grid 'B'. ### **Constraints:** ### 1) 5

Output Format

Three integers (space separated) in one line representing i , j and k respectively (lexicographically largest solution).