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