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