def find_average_record(sen_set, voting_dict):
    """
    Input: a set of last names, a voting dictionary
    Output: a vector containing the average components of the voting records
            of the senators in the input set
    Example: 
        >>> voting_dict = {'Klein': [-1,0,1], 'Fox-Epstein': [-1,-1,-1], 'Ravella': [0,0,1]}
        >>> find_average_record({'Fox-Epstein','Ravella'}, voting_dict)
        [-0.5, -0.5, 0.0]
    """
    avg_record = list()

    for key, val in voting_dict.items():
        if key in sen_set:
            for i in range(len(val)):
                if avg_record:
                    avg_record[i] += val[i]
                else:
                    avg_record = val
                    break

    return [ a / len(sen_set)for a in avg_record]