s = sorted(map(int, input().split())) del s[0], s[-1] x = sum(s)/4 print('{0:.2f}'.format(x))