inp = list(map(int, input().split())) ls_order = sorted(inp) ave = sum(ls_order[1:5])/4 print("%.2f" % ave)