import re


def max_num1(x: str)->int:
    """
    Input: String
    Output: Integer
    Finds the maximum integer in the string
    """
    c = re.findall("\d+",x)
    n = map(int,c)
    return max(n)