s=list(map(int,input().split())) s.sort() print('{:.2f}'.format(sum(s[1:-1])/(len(s)-2)))