The first line contains two integers
n,mn,mn,m.
The following
n−1n-1n−1 lines each contain two integers
u,vu,vu,v representing that there's an edge between
uuu and
vvv on the tree.
The following
m lines each contains three integers
l,r,xl,r,xl,r,x representing an operation.