#include <bits/stdc++.h>
using namespace std;
int main() {
  int st, fin, k = 0;
  deque<int> q;
  cin >> st >> fin;
  q.push_back(fin);
  while (fin > st) {
    if (fin % 10 == 1) {
      fin /= 10;
      q.push_back(fin);
      k++;
    } else if (fin % 2 == 0) {
      fin /= 2;
      q.push_back(fin);
      k++;
    } else
      break;
  }
  if (st == fin) {
    k++;
    cout << "YES" << endl << k << endl;
    while (!q.empty()) {
      cout << q.back() << " ";
      q.pop_back();
    }
    return 0;
  }
  cout << "NO";
  return 0;
}
