def just_ints(the_string):
    """Returns only the digits from a string as an integer."""
    # print(the_string)
    int_str_list = [character for character in the_string if character.isdigit()]
    # print(int_str_list)
    ret_val = int(''.join(int_str_list))
    return ret_val