from decimal import Decimal S = sorted(list(map(int,input().split()))) print(Decimal(str((sum(S[1:len(S)-1])/(len(S)-2)))).quantize(Decimal('0.01')))