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