#include <bits/stdc++.h>
using namespace std;
map<long long, bool> mp;
bool f = false;
vector<long long> v, ans;
bool rec(long long a, long long b) {
  if (mp.count(a)) {
    if (!mp[a]) {
      return false;
    }
  }
  if (a > b) {
    return false;
  }
  if (a == b) {
    f = true;
    ans = v;
    return true;
  }
  v.push_back(a * 2);
  rec(a * 2, b);
  v.pop_back();
  v.push_back(a * 10 + 1);
  rec(a * 10 + 1, b);
  v.pop_back();
  return false;
}
int main() {
  long long a, b;
  cin >> a >> b;
  v.push_back(a);
  rec(a, b);
  if (f) {
    cout << "YES" << endl << ans.size() << endl;
    for (int i = 0; i < ans.size(); ++i) {
      cout << ans[i] << " ";
    }
    cout << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
