#include <bits/stdc++.h>
using namespace std;
int n;
vector<int> ans;
int main() {
  int from;
  int i = 0;
  cin >> from >> n;
  while (n >= from) {
    ans.push_back(n);
    if (n & 1) {
      --n;
      if (n % 10 && n >= from) {
        cout << "NO";
        return 0;
      }
      n /= 10;
    } else
      n /= 2;
  }
  if (ans[ans.size() - 1] == from) {
    cout << "YES\n" << ans.size() << endl;
    copy(ans.rbegin(), ans.rend(), ostream_iterator<int>(cout, " "));
  } else
    cout << "NO";
}
