def solve(): lst = list(map(float, input().split())) lst.remove(max(lst)) lst.remove(min(lst)) total = 0 for i in lst: total += i result = total / len(lst) print("%.2f" % result) if __name__ == '__main__': solve()