#include <bits/stdc++.h>
using namespace std;
long long n, m;
vector<long long> v;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> m >> n;
  while (m < n) {
    if (n % 2 == 1) {
      if (n % 10 != 1) {
        cout << "NO" << endl;
        return 0;
      } else {
        v.push_back(n);
        n /= 10;
      }
    } else {
      v.push_back(n);
      n /= 2;
    }
  }
  if (m == n) {
    cout << "YES" << '\n';
    v.push_back(m);
    cout << v.size() << '\n';
    for (int i = v.size() - 1; i >= 0; i--) {
      cout << v[i] << " ";
    }
    cout << endl;
  } else {
    cout << "NO" << '\n';
  }
  return 0;
}
