l = list(map(int, input().split())) print((sum(l) - max(l) - min(l)) / 4)