#P10993. [2015杭电多校]Goldbach's Conjecture
[2015杭电多校]Goldbach's Conjecture
Goldbach's Conjecture
Problem Description
Let be the sum of all divisors of . is called a good number if every number from 1 to can be expressed as a sum of distinct divisors of . For example, is a good number, , and so on. Teacher Mai wants to know whether a even number can be expressed as a sum of two good numbers.
Input
There are multiple test cases(about ). For each test case, there is only one line contains one even number . Most test cases are generated randomly.
Output
For each test case, print "YES" or "NO" in the first line. That means if is possible to express as a sum of two good numbers. If your answer is "YES", print two number in the second lines. Both and should be good numbers, and . In the third and the fourth line, print the factorization of number and . If , where , are all prime numbers and , you should print first, then space-seperated numbers .
Sample Input
18
Sample Output
YES
6 12
2 2 1 3 1
2 2 2 3 1
Hint
0 is not a good number.
Author
xudyh
Source
2015 Multi-University Training Contest 9