#include <iostream>
#include <set>
using namespace std;

int main(){
    int T;
    cin >> T;
    while (T--){
        int no, p, q;
        cin >> no >> p >> q;
        if (p < q)
            cout << no << " 2 " << p << " " << q << endl;
        else if(q > 3)
            cout << no << " 6 1 2 3 " << p - q + 5 << " " << p + 2 << " " << p + 3 << endl;
        else 
            cout << no << " NO PATH" << endl;
    }
}