Bi Luo is a magic boy, he also has a migic tree, the tree has $N$ nodes , in each node , there is a treasure, it's value is $V[i]$, and for each edge, there is a cost $C[i]$, which means every time you pass the edge $i$ , you need to pay $C[i]$.
You may attention that every $V[i]$ can be taken only once, but for some $C[i]$ , you may cost severial times.
Now, Bi Luo define $ans[i]$ as the most value can Bi Luo gets if Bi Luo starts at node $i$.
Bi Luo is also an excited boy, now he wants to know every $ans[i]$, can you help him?