INPUT: first line take n value and pattern to be found then input the matrix of characters OUTPUT: YES or NO if yes print indices also