def update_pg(mas_v, probs_massive):
    """
    Probabilities update after new transaction
    
    :type mas_v: numeric list
    :param mas_v: list with values of circles
    
    :type probs_massive: numeric list
    :param probs_massive: list with probabilities to update afer new transaction
    """
    for i in range(len(mas_v)):
        for j in range(len(mas_v[i])):
            probs_massive[i][j] = mas_v[i][j] * 1.0 / sum(mas_v[i])
    return probs_massive
