S = input().split() S = [int(i) for i in S] S.sort() ave = (S[1] + S[2] + S[3] + S[4]) / 4 print("%03.2f" % ave)