#include <bits/stdc++.h>
using namespace std;
const int sz = 2e6 + 9;
const int mod = 998244353;
vector<long long int> vec;
bool flag = false;
void rec(long long int a, long long int b) {
  if (flag) {
    return;
  }
  if (a > b) return;
  vec.push_back(a);
  if (a == b) {
    flag = true;
    cout << "YES" << endl;
    cout << vec.size() << endl;
    for (auto it : vec) {
      cout << it << ' ';
    }
    cout << endl;
    return;
  }
  rec(2 * a, b);
  rec(10 * a + 1, b);
  vec.pop_back();
}
void solve() {
  long long int a, b, i, j;
  cin >> a >> b;
  rec(a, b);
  if (!flag) cout << "NO" << endl;
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
