l = list(map(int, input().split())) l.sort() l = l[1:-1] print('{:.02f}'.format(sum(l)/len(l)))