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