s=sorted(map(int,input().split())) print(f'{sum(s[1:-1])/4:.2f}')