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