A one-player game is played on a $m \times n$ table with $m \times n$ nuts. One of the nuts' sides is black, and the other side of them is white. In the beginning of the game, there is one nut in each cell of the table and all nuts have their white side upwards except one cell in one corner of the table which has the black side upwards. In each move, we should remove a nut which has its black side upwards from the table and reverse all nuts in adjacent cells (i.e. the cells which share a common side with the removed nut's cell). Find all pairs $(m,n)$ for which we can remove all nuts from the table.