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