#P1886A. Sum of Three
Sum of Three
No submission language available for this problem.
Description
Monocarp has an integer .
He wants to represent his number as a sum of three distinct positive integers , , and . Additionally, Monocarp wants none of the numbers , , and to be divisible by .
Your task is to help Monocarp to find any valid triplet of distinct positive integers , , and , or report that such a triplet does not exist.
The first line contains a single integer () — the number of testcases.
The only line of each testcase contains a single integer ().
For each testcase, if there is no valid triplet , , and , print NO on the first line.
Otherwise, print YES on the first line. On the second line, print any valid triplet of distinct positive integers , , and such that , and none of the printed numbers are divisible by . If there are multiple valid triplets, you can print any of them.
Input
The first line contains a single integer () — the number of testcases.
The only line of each testcase contains a single integer ().
Output
For each testcase, if there is no valid triplet , , and , print NO on the first line.
Otherwise, print YES on the first line. On the second line, print any valid triplet of distinct positive integers , , and such that , and none of the printed numbers are divisible by . If there are multiple valid triplets, you can print any of them.
Note
In the first testcase, one of the valid triplets is , , . None of these numbers are divisible by three, and .
In the second testcase, there is no valid triplet.
In the third testcase, one of the valid triplets is , , . None of these numbers are divisible by three, and .
In the fourth testcase, there is no valid triplet.