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