You are given a directed graph of n vertices numbered from 0 to n−1. You are also given two integers p and q such that 1≤p,q≤n.
The edges of the graph are constructed as follows: for every vertex i,
Obviously, the graph has exactly (n−p)+(n−q) edges.
Find any Hamiltonian path in this graph, or determine that it does not exist.
Recall that a Hamiltonian path is a path that visits every vertex exactly once.
The first line of input contains an integer T (1≤T≤104), the number of test cases.
Each test case consists of a single line containing three integers: n, p, and q (1≤p,q≤n≤106).
It is guaranteed that the sum of n over all test cases does not exceed 106.
For each test case, print a single line containing n integers that represent the order of vertices in a Hamiltonian path, or print −1 if it does not exist.
If there are multiple solutions, print any one of them.