Codeforces Round 461 (Div. 2)
F
Divisibility
Codeforces
2400
原题
← E→
翻译中…

Imp is really pleased that you helped him. But it you solve the last problem, his gladness would raise even more.

翻译中…

image

翻译中…

Let's define

翻译中…

image

翻译中…

for some set of integers

翻译中…

image

翻译中…

as the number of pairs

翻译中…

a

翻译中…

,

翻译中…

b

翻译中…

in

翻译中…

image

翻译中…

, such that:

翻译中…
  • $*a*$ is strictly less than $*b*$;
  • $*a*$ divides $*b*$ without a remainder.
翻译中…

You are to find such a set image, which is a subset of ${1, 2, ..., *n*}$ (the set that contains all positive integers not greater than $*n*$), that image.

翻译中…

Input

翻译中…

The only line contains two integers $*n*$ and $*k*$ image.

翻译中…

Output

翻译中…

If there is no answer, print "No".

翻译中…

Otherwise, in the first line print "Yes", in the second — an integer $*m*$ that denotes the size of the set image you have found, in the second line print $*m*$ integers — the elements of the set image, in any order.

翻译中…

If there are multiple answers, print any of them.

翻译中…

Note

翻译中…

In the second sample, the valid pairs in the output set are $(1, 2)$, $(1, 4)$, $(1, 5)$, $(1, 6)$, $(2, 4)$, $(2, 6)$. Thus, image.

翻译中…

In the third example, the valid pairs in the output set are $(2, 4)$, $(4, 8)$, $(2, 8)$. Thus, image.

翻译中…

样例

Input #1
3 3
Output #1
No
InputCopy OutputCopy
Input #2
6 6
Output #2
Yes
5
1 2 4 5 6
InputCopy OutputCopy
Input #3
8 3
Output #3
Yes
4
2 4 5 8
InputCopy OutputCopy
题目信息
题号
922F
时间限制
1 s
内存限制
256 MB
标签
构造
动态规划
贪心
数论

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