#include <bits/stdc++.h>
using namespace std;
void init_ios() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
}
long long a, b;
vector<long long> v;
bool flag;
void jeb(vector<long long> &v) {
  if (flag) return;
  if (v.back() > b) {
    return;
  }
  if (v.back() == b) {
    flag = true;
    cout << "YES\n";
    cout << v.size() << "\n";
    for (auto x : v) cout << x << " ";
    cout << "\n";
    return;
  }
  v.push_back(2 * v.back());
  jeb(v);
  v.pop_back();
  v.push_back(10 * v.back() + 1);
  jeb(v);
  v.pop_back();
}
signed main() {
  init_ios();
  cin >> a >> b;
  v.push_back(a);
  jeb(v);
  if (!flag) cout << "NO\n";
}
