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