l = sorted(map(int, input().split())) l.pop(5) l.pop(0) print('{:.2f}'.format(sum(l)/4))