class Solution:
    def numDifferentIntegers(self, word: str) -> int:
        ans = set()
        val = [x if x.isdigit() else " " for x in word]
        val = "".join(val)
        val = val.split()
        for x in val:
            ans.add(int(x))
        return len(ans)

14a95d14a8f4276eab57fb016e5576ec6602dbdc
<mask token>

class Solution:
    <mask token>

class Solution:

    def numDifferentIntegers(self, word: str) ->int:
        ans = set()
        val = [(x if x.isdigit() else ' ') for x in word]
        val = ''.join(val)
        val = val.split()
        for x in val:
            ans.add(int(x))
        return len(ans)

class Solution:
    def numDifferentIntegers(self, word: str) -> int:
        ans = set()
        val = [x if x.isdigit() else " " for x in word]
        val = "".join(val)
        val = val.split()
        for x in val:
            ans.add(int(x))
        return len(ans)
