print(f"{sum(sorted(list(map(int,input().split())))[1:5])/4:.2f}")