import sys input=lambda: sys.stdin.readline().rstrip() A=sorted([int(i) for i in input().split()]) print(sum(A[1:5])/4)