def input_format(line):
    """ Converts a string into a list of vertices and a point

    Receive an entry with this format with 
    this format '1 1, 3 2, 1 4, 3 4 | 3 3 '
    Returns:
    list = [(1,1), (3,2), (1,4), (3,4)] and a point = (3,3)

    :param line: 
    :return: list, point
    """

    line_strip = line.rstrip('\n').split(' | ')
    point = line_strip[1].split(' ')
    coord = (float(point[0]), float(point[1]))
    vertices = []
    for vertex in line_strip[0].split(', '):
        vertices.append(
            (float(vertex.split(' ')[0]),
             float(vertex.split(' ')[1])))

    return vertices, coord