s = list(map(int, input().split())) s.sort() s.pop(len(s)-1) s.pop(0) res = sum(s) / len(s) print(format(res, '.2f'))