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