def process_input(input_name):
    """
    Returns the processed input as well as the max size of the ocean matrix
    """
    with open(input_name) as input:
        max_size = 0
        processed = []

        for line in input:
            points = line.strip().split(' -> ')
            line_array = []

            for point in points:
                point = point.split(',')
                p1, p2 = int(point[0]), int(point[1])
                line_array.append((p1, p2))
                max_size = max(max_size, p1, p2)

            processed.append(line_array)

        return processed, max_size + 1