a = sorted(map(int, input().split())) sum = sum(a[1:-1]) ave = sum/(len(a)-2) print('{0:.2f}'.format(ave))