#include <bits/stdc++.h>
using namespace std;
long long finnal, arr[100000], prof = 0;
bool done = false;
void expandir(long long a) {
  if (done == true) return;
  arr[prof] = a;
  prof++;
  long long opc1 = 2 * a;
  long long opc2 = a * 10 + 1;
  if (a > finnal) {
    prof--;
    return;
  }
  if (a == finnal) {
    cout << "YES" << endl;
    cout << prof << endl;
    for (int i = 0; i < prof; i++) cout << arr[i] << " ";
    done = true;
  } else {
    expandir(opc1);
    expandir(opc2);
  }
  prof--;
}
int main() {
  long long a;
  cin >> a >> finnal;
  expandir(a);
  if (done == false) {
    cout << "NO" << endl;
  }
}
