neat python3 solution
\nclass Solution:\n    def ambiguousCoordinates(self, S):\n        """\n        :type S: str\n        :rtype: List[str]\n        """\n        \n        def str2
```\nclass Solution:\n    def ambiguousCoordinates(self, S):\n        """\n        :type S: str\n        :rtype: List[str]\n        """\n        \n        def str2digits(s):\n            if s == \'0\':\n                return [\'0\']\n            if s.startswith(\'0\') and s.endswith(\'0\'):\n                return []\n            if s.startswith(\'0\'):\n                return [\'0.\'+s[1:]]\n            if s.endswith(\'0\'):\n                return [s]\n            ans = [s]\n            for i in range(1, len(s)):\n                ans.append(s[:i]+\'.\'+s[i:])\n            return ans\n        \n        ans = []\n        \n        s = S[1:-1]\n        for i in range(1, len(s)):\n            first = str2digits(s[:i])\n            second = str2digits(s[i:])\n            for x in first:\n                for y in second:\n                    ans.append(\'(\'+x+\', \'+y+\')\')\n        return ans\n            \n```
[]