#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)(1e5) + 10;
const int INF = (int)(1e9);
const long long inf = (long long)(1e18);
const double eps = (1e-9);
const long double PI = acos(-1);
long long f;
void dfs(long long a, vector<long long> v, long long b) {
  if (a == b) {
    cout << "YES\n" << v.size() << "\n";
    for (int i = 0; i < v.size(); ++i) cout << v[i] << " ";
    f = 1;
    return;
  }
  if (a * 2 <= b) {
    v.push_back(a * 2);
    dfs(a * 2, v, b);
    v.pop_back();
  }
  if (a * 10 + 1 <= b) {
    v.push_back(a * 10 + 1);
    dfs(a * 10 + 1, v, b);
    v.pop_back();
  }
}
long long a, b;
vector<long long> v;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> a >> b;
  v.push_back(a);
  dfs(a, v, b);
  if (!f) cout << "NO";
  return 0;
}
