Decoration

아직 제출이 없습니다시간 제한1.5초메모리 제한512 MB

문제

After all these months of lockdown, you are tired of the interior decoration of your home and decide to redesign it. Hence, you read many blog posts and magazines about Feng Shui decorating and other recent trends on home design. After some time of thinking, you decide to reproduce the idea of the famous designer Sweta Marc for replacing your bookcase with a new one you will build.

According to S. Marc, a harmonious bookcase always has several shelves spaced in an heterogeneous manner, and always following some very precise rules. More precisely, such a bookcase has a serenity value NN and is composed of K+1K+1 shelves spaced by s_1,,s_Ks\_1, \ldots, s\_K millimeters between each other, from the bottom to the top. According to S. Marc ideals, these spaces should verify the following properties:

  1. They should be heterogeneous, i.e., no two spaces have the same height.
  2. They should be not too high, i.e., for all i\[1,K]i \in \[1, K], we should have 0s_i<N0 \leq s\_i < N. Note that one of these spaces might actually have size 00: this is one of the oddities which make Sweta's tastes so visually attractive (arguably, this is a loss of space, but you are ready for that in the name of elegance, well-being... and trendiness).
  3. They should be serene, i.e., for all i\[1,K1]i \in \[1, K-1], Sweta prefers if s_i+1s\_{i+1} is congruent modulo NN to s_is\_i plus the number of divisors of s_is\_i. (Yes, Ms. Marc is sophisticated and loves arithmetic.)

You tried to design a bookcase according to the advice of Sweta Marc, but you find it hard to satisfy all the requirements. The only few solutions you found result in a bookcase which is too tall for your place.

Therefore, you decide to write a program which, given the number of shelves KK and the serenity value NN, computes the values of the spaces s_1,,s_Ks\_1, \ldots, s\_K of one of the minimum height bookcases, i.e. a bookcase where the sum of spaces s_1++s_Ks\_1 + \cdots + s\_K is the smallest.

입력

The only line of input contains two integers NN and KK separated by a space.

출력

The output should contain a single line containing either:

  • 1-1 if it is not possible to satisfy Sweta Marc's prescriptions for the given values of KK and NN,
  • otherwise, KK integers s_1,,s_Ks\_1, \ldots, s\_K, corresponding to the spaces between the shelves of one of the minimum height bookcases satisfying the constraints. If several solutions are possible, the output should contain any of them.

제한

  • 1N1,000,0001 \leq N \leq 1\\,000\\,000
  • 1K1,000,0001 \leq K \leq 1\\,000\\,000

힌트

We recall the following mathematical definitions (aa and bb are arbitrary integers):

  • aa divides bb if there exists an integer qq such that b=aqb = aq;
  • aa is a divisor of bb if b0b \neq 0 and aa divides bb;
  • aa is congruent to bb if NN divides bab-a.