#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b;
  int i;
  vector<long long> v;
  cin >> a >> b;
  long long x = b;
  if (a > b) {
    cout << "NO";
    return 0;
  }
  v.push_back(b);
  while (1 == 1) {
    if (b == a) {
      break;
    }
    if (b < a) break;
    if (b % 2 == 0) {
      v.push_back(b / 2);
      b = b / 2;
    } else if ((b - 1) % 10 == 0) {
      b = (b - 1) / 10;
      v.push_back(b);
    } else
      break;
  }
  if (b == a) {
    cout << "YES" << endl;
    int vs = v.size();
    cout << vs << endl;
    for (i = vs - 1; i >= 0; i--) {
      cout << v[i] << ' ';
    }
  } else {
    cout << "NO";
  }
  return 0;
}
