s = list(map(int, input().split())) s.sort() s.pop(0) s.pop() print(f'{sum(s)/ 4:.2f}')