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