302732: CF530E. Sum and product
Memory Limit:256 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
E. Sum and producttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output
You are given integers N and D. Find N positive integers x1...xN such that the difference of their product and their sum equals D.
InputThe only line of input contains integers N (2 ≤ N ≤ 1000) and D (0 ≤ D ≤ 1000).
OutputOutput N integers that satisfy the given condition in non-decreasing order (in a single line, separated with spaces). Note that some numbers can be equal. Numbers printed by you must not exceed 106.
ExamplesInput2 1Output
2 3Input
3 5Output
1 2 8