import java.util.Scanner;

public class G {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int T = sc.nextInt();
        loop: while (T > 0) {
            T--;
            int count = sc.nextInt();
            int x = sc.nextInt();
            int y = sc.nextInt();
            System.out.printf(count + " ");
            if (y > x) {
                System.out.printf(2 + " " + x + " " + y);
                System.out.println();
                continue loop;
            }
            if (y < 4) {
                System.out.printf("NO PATH");
                System.out.println();
                continue loop;
            }
            System.out.printf(6 + " ");
            System.out.printf(1 + " " + 2 + " " + 3 + " " + (x + 5 - y)
                              + " " + (x + 2) + " " + (x + 3));
            System.out.println();
        }
    }
}