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