S=list(map(int,input().split())) S.pop(S.index(max(S))) S.pop(S.index(min(S))) print("%.2f" % float(sum(S)/4))