#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  vector<int> ans;
  cin >> a >> b;
  while (b > a) {
    ans.push_back(b);
    if (b & 1) {
      b -= 1;
      if (b % 10 == 0)
        b /= 10;
      else
        break;
    } else {
      b /= 2;
    }
  }
  if (b == a) {
    ans.push_back(b);
    cout << "YES\n";
    cout << ans.size() << "\n";
    reverse(ans.begin(), ans.end());
    for (int i : ans) cout << i << " ";
  } else {
    cout << "NO";
  }
}
