#include <bits/stdc++.h>
using namespace std;
void func() {
  long long int a, b;
  cin >> a >> b;
  vector<long long int> v;
  v.push_back(b);
  while (1) {
    if (b == 0) {
      cout << "NO\n";
      return;
    }
    if (b % 2 == 0) {
      b /= 2;
      v.push_back(b);
    } else if ((b - 1) % 10 == 0) {
      b = (b - 1) / 10;
      v.push_back(b);
    } else if (b < a) {
      cout << "NO\n";
      return;
    } else {
      cout << "NO\n";
      return;
    }
    if (b == a) break;
  }
  cout << "YES\n";
  cout << v.size() << '\n';
  reverse(v.begin(), v.end());
  for (auto itr : v) cout << itr << ' ';
  cout << '\n';
}
int32_t main() {
  func();
  return 0;
}
