f = [int(n) for n in input().split(" ")] f.remove(max(f)) f.remove(min(f)) print("%.2f" %(sum(f)/len(f)))