s=sorted(map(int,input().split())) s.pop();s.pop(0) print(f'{sum(s)/len(s):.2f}')