#include <bits/stdc++.h>
using namespace std;
long long int arr[10000];
string s;
int main() {
  long long int i = 0, j, k, l, m, n, t, q, w, x, y, c = 0;
  cin >> m >> n;
  k = n;
  while (m < n) {
    l = n % 10;
    if (l == 1) {
      n = n / 10;
      arr[i] = n;
      i++;
    } else if (n % 2 == 0) {
      n = n / 2;
      arr[i] = n;
      i++;
    } else {
      cout << "NO";
      return 0;
    }
  }
  if (m == n) {
    cout << "YES" << endl;
    cout << i + 1 << endl;
    for (j = i - 1; j >= 0; j--) {
      cout << arr[j] << " ";
    }
    cout << k;
  } else {
    cout << "NO";
  }
}
