S = list(map(int, input().split())) S.sort() need = S[1:-1] sum = 0 for s in need: sum += s print("%.2f" % (sum / (len(need))))