For each test case, print "YES" or "NO" in the first line. That means if is possible to express p as a sum of two good numbers.
If your answer is "YES", print two number a,b in the second lines. Both a and b should be good numbers, and a+b=p.
In the third and the fourth line, print the factorization of number a and b. If a=sigma(pi^ei),(1<=i<=k) where p1<p2<⋯<pk, pi are all prime numbers and ei≥1, you should print k first, then 2k space-seperated numbers p1,e1,p2,e2,⋯,pk,ek.