#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  vector<int> arr;
  arr.push_back(b);
  while (b > a) {
    if (b % 10 == 1)
      arr.push_back(b /= 10);
    else if (b % 2 == 1) {
      cout << "NO" << endl;
      return 0;
    } else
      arr.push_back(b /= 2);
  }
  if (arr.back() != a) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES\n" << arr.size() << endl;
  for (auto it = arr.rbegin(); it != arr.rend(); ++it) cout << *it << ' ';
}
