A = list(map(float,input().split())) A.remove(min(A)),A.remove(max(A)) ans = round(sum(A)/len(A),3) print("%.2f" %ans)