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