is called an -th degree root of modulo if and only if x^n \equiv a \pmod{p}. Write a program that finds all -th degree roots of modulo .
The first line contains a single integer (1 \leq t \leq 10000) — the number of test cases. Each subsequent line contains integers , , and (1 \leq a, p \leq 10^6, 1 \leq n \leq 10, is prime, and are coprime).
For each test, output all -th degree roots of in the range to p-1 in ascending order on a single line, separated by a space. If there are no roots for the current test, print No root on a separate line.
Example 1