#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y, a[10000], k = 1, z;
  cin >> x >> y;
  z = y;
  while (y > x) {
    if (y % 2 == 0) {
      y /= 2;
      a[k] = y;
      k++;
    } else {
      y--;
      if (y % 10 != 0) {
        cout << "NO";
        return 0;
      }
      y /= 10;
      a[k] = y;
      k++;
    }
  }
  if (y == x) {
    cout << "YES" << endl;
    cout << k << endl;
    for (int i = k - 1; i > 0; i--) {
      cout << a[i] << " ";
    }
    cout << z << endl;
  } else
    cout << "NO";
  return 0;
}
