##Description

Recently, LBH is learning the curse linear algebra. Thus he is very interested in matrix and determinant now. In order to practice his ability of solving the problem of linear algebra, he just invent some problems by himself. Once the problems was create, he would solve it immediately. However, he meet a problem that was so hard that he couldn’t work out even though racked his brains. The problem was described as follow:

To a integer martix M_{nn}(a_{ij}), we define two function add(M_{nn}(a_{ij}))=M_{nn}(a_{ij} + 1) and sub(M_{nn}(a_{ij}))=M_{nn}(a_{ij} - 1) which were exactly like this: