Vasily has a number a, which he wants to turn into a number b. For this purpose, he can do two types of operations:
You need to help Vasily to transform the number a into the number b using only the operations described above, or find that it is impossible.
Note that in this task you are not required to minimize the number of operations. It suffices to find any way to transform a into b.
The first line contains two positive integers a and b (1 ≤ a < b ≤ 10^{9}) — the number which Vasily has and the number he wants to have.
If there is no way to get b from a, print "NO" (without quotes).
Otherwise print three lines. On the first line print "YES" (without quotes). The second line should contain single integer k — the length of the transformation sequence. On the third line print the sequence of transformations x_{1}, x_{2}, ..., x_{k}, where:
If there are multiple answers, print any of them.
2 162
YES
5
2 4 8 81 162
4 42
NO
100 40021
YES
5
100 200 2001 4002 40021
Name |
---|