#P12183. DerrickLo's Milk Loong (UBC002F)
DerrickLo's Milk Loong (UBC002F)
Description
You are given an integer , print integers that satisfies $\displaystyle\sum_{i=1}^n a_i=\operatorname{lcm}(a_1,a_2,\cdots,a_n)$. You should also minimize . .
Note that the least common multiple of the integers you print should not exceed , or your answer will be judged as a wrong answer.
Input Format
The first line contains one integer .
Output Format
Print your answer in any order seperated by space.
Do not print any spaces in the end of the line, or your answer will be judged as a wrong answer.
3
1 2 3
Hint
It can be proved that the range cannot be less that when . Thus, this answer is acceptable. Besides, 1 3 2 , 3 2 1 are also acceptable answers.
京公网安备 11011102002149号