#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, i = 1, x[2000];
  cin >> a >> b;
  if ((b % 2 != 0) && (b % 10 != 1)) {
    cout << "NO";
    return 0;
  }
  x[0] = b;
  while (b > a) {
    if (b % 2 == 0) {
      b = b / 2;
      x[i] = b;
      i++;
    } else if (b % 10 == 1) {
      b = b / 10;
      x[i] = b;
      i++;
    } else {
      cout << "NO";
      return 0;
    }
  }
  if (b != a) {
    cout << "NO";
    return 0;
  }
  cout << "YES" << endl << i << endl;
  for (int j = i - 1; j >= 0; j--) cout << x[j] << " ";
}
