s = list(map(int, input().split()))
s.sort()
s = s[1:-1]
ave = sum(s) / 4
print('{:.2f}'.format(ave))