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