Fibonomial

No attempts yetTime limit2sMemory limit512 MB

Problem

The Fibonacci sequence fnf_n is defined as follows.

f0=0,f1=1,fn=fn1+fn2    (n2)f_0 = 0, \quad f_1 = 1, \quad f_n = f_{n-1} + f_{n-2} \;\; (n \ge 2)

The Fibonomial FnF_n (n1n \ge 1) is defined as Fn=f1×f2××fnF_n = f_1 \times f_2 \times \cdots \times f_n, the product of f1f_1 through fnf_n.

For each integer kk with 2kp2 \le k \le p, write a program that reports how many times FnF_n has to be divided by kk before FnF_n is no longer divisible by kk.

Input

The first line holds two integers nn and pp, separated by one space. (1n1091 \le n \le 10^9, 2p1032 \le p \le 10^3)

Output

Print the answers on p1p - 1 lines. Line ii (1ip11 \le i \le p - 1) holds how many times FnF_n has to be divided by i+1i + 1 before FnF_n is no longer divisible by i+1i + 1.

Hint

F12=1570247078400=29×34×52×7×11×13×17×89F_{12} = 1570247078400 = 2^9 \times 3^4 \times 5^2 \times 7 \times 11 \times 13 \times 17 \times 89, so F12F_{12} can be divided by 22 nine times and by 44 four times.