def task4(n: int, connects: list) -> list:
    """
    Parameters:
    :n (int): number of places
    :connects (list): list of pair (a, c). a - vertex. c - list connected vertices.
    :return: critical places
    """
    pass
