#CF1294C. Product of Three Numbers
Product of Three Numbers
Product of Three Numbers
Time limit: 2 seconds / Memory limit: 256 megabytes
Problem Statement
You are given one integer number $$$$. Find three distinct integers $$$$ such that $$$$ and $$$$ or say that it is impossible to do it.
If there are several answers, you can print any.
You have to answer $$$$ independent test cases.
Input
The first line of the input contains one integer $$$$ ($$$$) — the number of test cases.
The next $$$$ lines describe test cases. The $$$$-th test case is given on a new line as one integer $$$$ ($$$$).
Output
For each test case, print the answer on it. Print "NO" if it is impossible to represent $$$$ as $$$$ for some distinct integers $$$$ such that $$$$.
Otherwise, print "YES" and any possible such representation.
Sample Input 1
5
64
32
97
2
12345
Sample Output 1
YES
2 4 8
NO
NO
NO
YES
3 5 823