For all testcases, node are labelled from 1 to N. Hence, 1 ≤ u, v ≤ N., 2 ≤ X ≤ 1018 and 0 < E ≤ N(N-1).
For all testcases, nodes are labelled from 1 to N. Hence, 1 ≤ u, v ≤ N. In addition, 2 ≤ X ≤ 1018 and 0 < E ≤ N(N-1).