#include <bits/stdc++.h>
using namespace std;
int a;
int b;
int n = 0;
int* mas;
int main() {
  cin >> a;
  cin >> b;
  int i = b;
  int x = a;
  while (i > 0) {
    if (i % 2 == 0 && i > x) {
      i /= 2;
      n++;
      continue;
    }
    if ((i - 1) % 10 == 0 && i > x) {
      i = (i - 1) / 10;
      n++;
      continue;
    }
    if (i == x) {
      mas = new int[n];
      cout << "YES" << endl;
      cout << n + 1 << endl;
      break;
    }
    cout << "NO" << endl;
    break;
  }
  if (i == x) {
    int o = n - 1;
    i = b;
    while (o >= 0) {
      if (i % 2 == 0 && i > x) {
        i /= 2;
        mas[o] = i;
        o--;
        continue;
      }
      if ((i - 1) % 10 == 0 && i > x) {
        i = (i - 1) / 10;
        mas[o] = i;
        o--;
        continue;
      }
      o--;
    }
    for (int y = 0; y < n; y++) {
      cout << mas[y] << " ";
    }
    cout << b;
  }
}
