Codeforces Round 256 (Div. 2)
E
Divisors
Codeforces
2200
原题
← D→
翻译中…

Bizon the Champion isn't just friendly, he also is a rigorous coder.

翻译中…

Let's define function $*f*(*a*)$, where $*a*$ is a sequence of integers. Function $*f*(*a*)$ returns the following sequence: first all divisors of $*a*_{1}$ go in the increasing order, then all divisors of $*a*_{2}$ go in the increasing order, and so on till the last element of sequence $*a*$. For example, $*f*([2, 9, 1]) = [1, 2, 1, 3, 9, 1]$.

翻译中…

Let's determine the sequence $*X*_{*i*}$, for integer $*i*$ $(*i* ≥ 0)$: $*X*_{0} = [*X*]$ ($[*X*]$ is a sequence consisting of a single number $*X*$), $*X*_{*i*} = *f*(*X*_{*i* - 1})$ $(*i* > 0)$. For example, at $*X* = 6$ we get $*X*_{0} = [6]$, $*X*_{1} = [1, 2, 3, 6]$, $*X*_{2} = [1, 1, 2, 1, 3, 1, 2, 3, 6]$.

翻译中…

Given the numbers $*X*$ and $*k*$, find the sequence $*X*_{*k*}$. As the answer can be rather large, find only the first $10^{5}$ elements of this sequence.

翻译中…

Input

翻译中…

A single line contains two space-separated integers — $*X*$ $(1 ≤ *X* ≤ 10^{12})$ and $*k*$ $(0 ≤ *k* ≤ 10^{18})$.

翻译中…

Output

翻译中…

Print the elements of the sequence $*X*_{*k*}$ in a single line, separated by a space. If the number of elements exceeds $10^{5}$, then print only the first $10^{5}$ elements.

翻译中…

样例

Input #1
6 1
Output #1
1 2 3 6
InputCopy OutputCopy
Input #2
4 2
Output #2
1 1 2 1 2 4
InputCopy OutputCopy
Input #3
10 3
Output #3
1 1 1 2 1 1 5 1 1 2 1 5 1 2 5 10
InputCopy OutputCopy
题目信息
题号
448E
时间限制
2 s
内存限制
256 MB
标签
暴力
DFS 及类似
模拟
数论

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。