x=list(map(int,input().split())) print((sum(x)-max(x)-min(x))/(len(x)-2))