def main(): S = tuple(map(int, input().split())) s = sorted(S) l = len(s) ave = sum(s[1:l-1]) / (l - 2) print('{:.2f}'.format(ave)) main()