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