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