#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 500;
const long long mod = 1e9 + 7;
const long long cmod = 998244353;
const long long inf = 1LL << 61;
const int M = 1e6 + 500;
const long long int ths = 1LL << 40;
const int NN = 5e3 + 6;
vector<long long int> ans;
bool ok = 0;
void dfs(long long int a, long long int stop, vector<long long int> v) {
  v.push_back(a);
  if (a == stop) {
    ok = 1;
    ans = v;
    return;
  }
  if (a * 10 + 1 <= stop) {
    dfs(a * 10 + 1, stop, v);
  }
  if (2 * a <= stop) {
    dfs(2 * a, stop, v);
  }
  return;
}
void solve() {
  long long int a, b;
  cin >> a >> b;
  vector<long long int> v;
  dfs(a, b, v);
  if (ok) {
    cout << "YES\n";
    cout << ans.size() << '\n';
    for (auto it : ans) cout << it << ' ';
  } else {
    cout << "NO";
  }
  cout << '\n';
  return;
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
