Artificial intelligent assistant

Predict Winner and Optimal Strategy in Substraction Game of 3 Towers Given the following game, what is the strategy to win? * There are 3 heaps with _m, n, k_ stones respectively. _m, n, k_ must all be _>1_ and can be the same. * At each turn, each player can take either _1 from a single tower_ or 2 _stones from 2 different towers_ (1 from each tower) * **EDIT:** The winner is the person to take the last stone(s). Thus, _(0, 1, 1)_ or _(0, 0, 1)_ are winning positions. I need to know given a position who is predicted to win and what's the best move to take. I've been trying to compare this problem with Nim, Substraction Games, Grundy Numbers etc., but the problem is that they are all based on taking an amount larger than 1 from a single tower. Any help is appreciated. Thanks in advance!

Unfortunately, it turns out simply.
Losing positions are where $(m,n,k)$ are either all even or all odd.
It is more complicated if the last stone loses, I don't have a formula for that.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 5b110634cd13cbbc2caf389b6d933628