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