{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"每个数都可以表示成若干个素数的相乘形式,现在给你一个数num的质数相乘的形式,请输出num-1的质数相乘形式。\n例如 样例二:(5^1)*(2^1)\u003dnum\u003d10 ,所以num-1\u003d9\u003d3^2\n输出的质数pi 按降序输出"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv\u003e\n The input consists of lines (at least one) each of which except the last contains prime base representation of just one positive integer greater than 2 and less or equal 32767. All numbers in the line are separated by one space. The last line contains number 0.\n\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv\u003e\n The output contains one line for each but the last line of the input. If x is a positive integer contained in a line of the input, the line in the output will contain x - 1 in prime base representation. All numbers in the line are separated by one space. There is no line in the output corresponding to the last ``null\u0027\u0027 line of the input.\n\u003c/div\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e\n17 1\n5 1 2 1\n509 1 59 1\n0\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e\n2 4\n3 2\n13 1 11 1 7 1 5 1 3 1 2 1\u003c/pre\u003e"}}]}