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