#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m;
  cin >> n >> m;
  vector<long long> vec;
  while (m > n) {
    while (m % 2 == 0) {
      vec.push_back(m);
      m = m / 2;
      if (n == m) {
        vec.push_back(m);
        cout << "YES" << endl;
        cout << vec.size() << endl;
        reverse(vec.begin(), vec.end());
        for (auto i : vec) cout << i << " ";
        exit(0);
      }
    }
    vec.push_back(m);
    m = (m - 1);
    if (m % 10 != 0) {
      cout << "NO" << endl;
      exit(0);
    }
    m = m / 10;
    if (n == m) {
      vec.push_back(m);
      cout << "YES" << endl;
      cout << vec.size() << endl;
      reverse(vec.begin(), vec.end());
      for (auto i : vec) cout << i << " ";
      return 0;
    }
  }
  cout << "NO" << endl;
}
