According to the statement, as X forms with 2 match sticks and it’s a compulsory element of the game. An equal number of addition (+) and substraction(-) takes 3 match sticks to form. So if N-2 is divisible by 3 then Alice wins.