Trade
Trading is a subtle thing. A successful huckster not only should reasonably choose the time to sell the goods and master the art of touting, but also thoroughly examine the market. It's important to know which of the merchants trade with each other and which don't. Sometimes the merchants don't directly trade, but their goods still nd a way to each other via other merchants. For example, if merchants A and B trade directly and merchants B and C trade directly, then goods from A and C will get to each other via merchant B. In general, the goods may get from a merchant to another via any number of intermediate merchants. Another important concept are the inseparable pairs - these are the pairs of merchants which trade directly, and no sequence of intermediate merchants exists through which the merchants in the pair could trade indirectly.
Manao wants to become a successful huckster. We don't know what necessary skills he does possess, but he surely lacks the knowledge about market situation. What he currently knows is that there are N merchants at the market, M pairs trade directly and K of them are inseparable. What he needs is the information of sort "A trades with B, C trades with D, X trades with A". In most cases, this is ambiguous, but at the moment any tting scheme would suce.
You're given T scenarios with the values of N, M and K. For each of them determine whether a corresponding trade market exists and if yes, output its description. Merchants are numbered in some order from 1 to N, the description of the trade market is the set of all pairs of merchants who trade directly.
Input
The first line contains the number of scenarios T. Each of the following T lines contains three numbers N, M, K (2 ≤ N ≤ 100, 0 ≤ K ≤ M ≤ N·(N - 1)/2).
The number of scenarios in a single input does 100.
Sum of M's over all scenarios in a single input does not exceed 50000.
Output
For each of the T scenarios output "NO SOLUTION" (without quotes) if the corresponding trade market does not exist. Otherwise, output "TRADE MARKET FOUND", followed by M lines. Each of the lines must contain a pair of numbers separated by a space - the numbers of the merchants trading directly.