s=sorted(list(map(int,input().split())))[1:-1] print("%.2f"%(s/4))