S = sorted([int(i) for i in input().strip().split(' ')])[1:-1] print('{:.2f}'.format(sum(S) / len(S)))