def task3(n: int, edges: list) -> list:
    """
    Parameters:
    :n (int): number of vertices
    :edges (list): list of edges (a, b)
    :return: pair of players wins probabilities
    """
    pass
