l=sorted(map(int,input().split()))[1:-1] print(f"{sum(l)/len(l):.02f}")