#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int64_t a, b;
  cin >> a >> b;
  set<int64_t> s;
  s.insert(b);
  while (b > a) {
    if (b % 2 == 1) {
      if (b % 10 == 1)
        b /= 10;
      else
        break;
    } else if (b % 2 == 0)
      b /= 2;
    s.insert(b);
  }
  if (b == a) {
    cout << "YES" << endl << s.size() << endl;
    for (auto x : s) cout << x << " ";
    cout << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
