import re


def max_num(x: str)->int:
    """
    Input: String
    Output: Integer
    Finds the maximum integer in the string
    """
    c = re.findall(r"[1-9]+",x)
    maxele = 0
    for i in c:
        if int(i) > int(maxele):
            maxele = i
    return maxele