Python tricky math
Code\npython3 []\nclass Solution:\n    def stoneGameIX(self, stones: List[int]) -> bool:\n        cnt = Counter(s % 3 for s in stones)\n        if cnt[0] % 2 ==
# Code\n```python3 []\nclass Solution:\n    def stoneGameIX(self, stones: List[int]) -> bool:\n        cnt = Counter(s % 3 for s in stones)\n        if cnt[0] % 2 == 0:\n            if cnt[1] == 0 or cnt[2] == 0:\n                return False\n            else:\n                return True\n        \n        elif cnt[0] % 2 == 1:\n            return abs(cnt[1] - cnt[2]) >= 3\n```
['Math', 'Python3']