x=list(map(int,input().split())) print('{:.2f}'.format((sum(x)-max(x)-min(x))/(len(x)-2)))