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