S = list(map(int,input().split(" "))) print("%.2f" % float(sum(sorted(S)[1:-1])/(len(S)-2)))