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