#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int a, b;
  cin >> a >> b;
  int tmp = b;
  vector<int> ans;
  ans.push_back(tmp);
  while (tmp > a) {
    int g = tmp % 10;
    if (g % 2 == 1 && g != 1) {
      cout << "NO" << endl;
      return 0;
    }
    if (g == 1) {
      tmp /= 10;
    } else {
      tmp /= 2;
    }
    ans.push_back(tmp);
  }
  if (tmp == a) {
    cout << "YES" << endl;
    reverse(ans.begin(), ans.end());
    cout << ans.size() << endl;
    for (auto t : ans) cout << t << " ";
    cout << endl;
  } else {
    cout << "NO" << endl;
  }
}
