import statistics from decimal import Decimal L = sorted(list(map(int,input().split())))[1:-1] me = statistics.mean(L) print(round(Decimal(me),2))