s = sorted(map(int, input().split())) s.pop(-1) s.pop(0) x = sum(s)/len(s) print('{:.2f}'.format(x))