Problem

Source: 2017 Iran MO 3rd round, second combinatorics exam P2

Tags: Iran, combinatorics



Two persons are playing the following game on a $n\times m$ table, with drawn lines: Person $\#1$ starts the game. Each person in their move, folds the table on one of its lines. The one that could not fold the table on their turn loses the game. Who has a winning strategy?