def expected_workload(L,p):
    """
    Return expected number of votes that need to be counted.
        L = input list of precincts: (size,name) pairs.
        p = input list of auditing probabilities.
    """
    return sum([p[i]*L[i][0] for i in range(len(L))])