class Solution:
    def reformatNumber(self, number: str) -> str:
        m = re.findall(r'\d+', number)
        num = "".join(m)
        
        def recur(num):
            if len(num) <= 3:
                return num
            if len(num) == 4:
                return num[:2] + "-" + num[2:]
            return num[:3] + "-" + recur(num[3:]) 
        return recur(num)

c98e1feec3b0eade747dcd1f0b92ed562e8b90e5
<mask token>

class Solution:
    <mask token>

class Solution:

    def reformatNumber(self, number: str) ->str:
        m = re.findall('\\d+', number)
        num = ''.join(m)

        def recur(num):
            if len(num) <= 3:
                return num
            if len(num) == 4:
                return num[:2] + '-' + num[2:]
            return num[:3] + '-' + recur(num[3:])
        return recur(num)

class Solution:
    def reformatNumber(self, number: str) -> str:
        m = re.findall(r'\d+', number)
        num = "".join(m)
        
        def recur(num):
            if len(num) <= 3:
                return num
            if len(num) == 4:
                return num[:2] + "-" + num[2:]
            return num[:3] + "-" + recur(num[3:]) 
        return recur(num)
