Input
M , N , X = 2 , 2 , 2 NEW_LINE A = [ [ 0 , 0 ] , [ 0 , 0 ] ] NEW_LINE B = [ [ 1 , 2 ] , [ 0 , 1 ] ] NEW_LINE if ( Check ( A , B , M , N , X ) ) : NEW_LINE INDENT print ( " Yes " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No " ) NEW_LINE DEDENT