import re


def parse_numbers(line):
    """Return list of numbers from the given input"""
    numbers = []
    matched = re.finditer(r'(\d+)', line)
    for match in matched:
        numbers.append(int(match.group()))
    return numbers