from typing import Tuple


def pop_number(string: str) -> Tuple[int, str]:
    """Pops a number from the beginning of the string."""
    number = 0
    while len(string) > 0 and string[0].isdigit():
        number = number * 10 + int(string[0])
        string = string[1:]

    return number, string