s=[x for x in map(int,input().split())] s=sorted(s)[1:-1] print("{:.2f}".format(sum(s)/len(s)))