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