#include <bits/stdc++.h>
using namespace std;
long long a, b;
vector<long long> vec;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> a >> b;
  while (a != b) {
    if (b < a) return cout << "NO", 0;
    vec.push_back(b);
    if (b % 10 == 1) {
      b /= 10;
      continue;
    }
    if (b % 2 == 0) {
      b /= 2;
      continue;
    }
    return cout << "NO", 0;
  }
  vec.push_back(a);
  reverse(vec.begin(), vec.end());
  cout << "YES" << endl << vec.size() << endl;
  for (long long i = 0; i < vec.size(); i++) cout << vec[i] << " ";
  cout << endl;
}
