def get_valid_number(message, min=0):
    """Repeatedly request input until a number greater than the min is given."""
    while True:
        try:
            num = int(input(message))

            if num < min:
                raise ValueError

        except ValueError:
            continue

        else:
            return num