[Python3] scan
\n\nclass Solution:\n    def minimumMoves(self, s: str) -> int:\n        ans = i = 0\n        while i < len(s): \n            if s[i] == "X": \n                
\n```\nclass Solution:\n    def minimumMoves(self, s: str) -> int:\n        ans = i = 0\n        while i < len(s): \n            if s[i] == "X": \n                ans += 1\n                i += 3\n            else: i += 1\n        return ans \n```
['Python3']