[Python3] simple
\nclass Solution:\n    def evenOddBit(self, n: int) -> List[int]:\n        res = [0,0]\n        flag = False\n        while n:\n            val = n & 1\n       
```\nclass Solution:\n    def evenOddBit(self, n: int) -> List[int]:\n        res = [0,0]\n        flag = False\n        while n:\n            val = n & 1\n            n >>=1\n            res[flag] += val\n            flag = not flag\n        return res\n```
['Python3']