Problem

Source: All Russian Olympiad 2017,Day1,grade 10,P3

Tags: combinatorics



There are 3 heaps with $100,101,102$ stones. Ilya and Kostya play next game. Every step they take one stone from some heap, but not from same, that was on previous step. They make his steps in turn, Ilya make first step. Player loses if can not make step. Who has winning strategy?