"""2020 - Day 1 Part 1: Report Repair."""


def process_data(data: str) -> list[int]:
    return [int(number) for number in data.strip().split("\n")]


def find_2020_summands(numbers: list[int]) -> tuple[int, int]:
    for i in range(len(numbers)):
        for j in range(i, len(numbers)):
            if numbers[i] + numbers[j] == 2020:
                return numbers[i], numbers[j]
    raise ValueError("no 2020 summands were found in input")


def solve(task: str) -> int:
    """Find two number which sum is 2020 and multiply them."""
    numbers = process_data(task)
    first, second = find_2020_summands(numbers)
    return first * second

64fdcc48ea588dc972b89e4ff9b5e26d3163ecd0
<mask token>

<mask token>


def process_data(data: str) ->list[int]:
    return [int(number) for number in data.strip().split('\n')]


<mask token>

<mask token>


def process_data(data: str) ->list[int]:
    return [int(number) for number in data.strip().split('\n')]


def find_2020_summands(numbers: list[int]) ->tuple[int, int]:
    for i in range(len(numbers)):
        for j in range(i, len(numbers)):
            if numbers[i] + numbers[j] == 2020:
                return numbers[i], numbers[j]
    raise ValueError('no 2020 summands were found in input')


<mask token>

<mask token>


def process_data(data: str) ->list[int]:
    return [int(number) for number in data.strip().split('\n')]


def find_2020_summands(numbers: list[int]) ->tuple[int, int]:
    for i in range(len(numbers)):
        for j in range(i, len(numbers)):
            if numbers[i] + numbers[j] == 2020:
                return numbers[i], numbers[j]
    raise ValueError('no 2020 summands were found in input')


def solve(task: str) ->int:
    """Find two number which sum is 2020 and multiply them."""
    numbers = process_data(task)
    first, second = find_2020_summands(numbers)
    return first * second

"""2020 - Day 1 Part 1: Report Repair."""


def process_data(data: str) -> list[int]:
    return [int(number) for number in data.strip().split("\n")]


def find_2020_summands(numbers: list[int]) -> tuple[int, int]:
    for i in range(len(numbers)):
        for j in range(i, len(numbers)):
            if numbers[i] + numbers[j] == 2020:
                return numbers[i], numbers[j]
    raise ValueError("no 2020 summands were found in input")


def solve(task: str) -> int:
    """Find two number which sum is 2020 and multiply them."""
    numbers = process_data(task)
    first, second = find_2020_summands(numbers)
    return first * second
