Problem

Source: Baltic Way 1996 Q19

Tags: combinatorics proposed, combinatorics



Four heaps contain $38,45,61$ and $70$ matches respectively. Two players take turn choosing any two of the heaps and take some non-zero number of matches from one heap and some non-zero number of matches from the other heap. The player who cannot make a move, loses. Which one of the players has a winning strategy ?