import statistics L = sorted(list(map(int,input().split())))[1:-1] print(statistics.mean(L))