ls = list(map(int,input().split())) a = sum(ls)-min(ls)-max(ls) print(f"{a/4:.2f}")