a = map(int, input().strip().split(' ')) b = 0 c = 101 e = 0 for d in a: b = max(b, d) c = min(c, d) e += d e -= b + c print('{:f}'.format(e / 4))