from statistics import mean s = list(map(int, input().split())) s.sort() ans = mean(s[1:-1]) print(ans)