lst = sorted([int(i) for i in input().strip().split(' ')]) print('{:.2f}'.format(sum(lst[1:len(lst) - 1]) / 4.0))