#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  vector<int> v(1, b);
  while (true) {
    if (b % 2 == 1 && b % 10 != 1) {
      cout << "NO" << endl;
      break;
    } else if (b % 2 == 0) {
      b /= 2;
      v.insert(v.begin(), b);
    } else {
      b--;
      b /= 10;
      v.insert(v.begin(), b);
    }
    if (b < a) {
      cout << "NO" << endl;
      break;
    } else if (b == a) {
      cout << "YES\n" << v.size() << endl << v[0];
      for (int i = 1; i < v.size(); i++) cout << " " << v[i];
      cout << endl;
      break;
    }
  }
  return 0;
}
