S = sorted(map(int, input().split())) S.pop() S.pop(0) print('{0:0.2f}'.format(sum(S) / len(S)))