def sum_of_middle_three(score1, score2, score3, score4, score5):
    """
    Return sum of 3 middle scores
    """
    min_score = min(score1, score2, score3, score4, score5)
    max_score = max(score1, score2, score3, score4, score5)
    sum_score = score1 + score2 + score3 + score4 + score5
    return sum_score - min_score - max_score