O(logU * V^2)

<= 2V^2
2^{k+1} --> 2^k
x[v] < 2^{k+1}
phi = Sum x[v]*h[v] < 2n^2 * 2^{k+1}

>= 2^k
подъем
-= 2^k
phi/2^k -= 1
phi/2^k < 4n^2