l = list(map(int, input().split())) print("{0:.2f}".format((sum(l) - max(l) - min(l)) / 4))