#include <bits/stdc++.h>
using namespace std;
bool Prime(long long int n) {
  if (n <= 1) return 0;
  if (n <= 3) return 1;
  if (n % 2 == 0 || n % 3 == 0) return 0;
  for (long long int i = 5; i * i <= n; i = i + 6)
    if (n % i == 0 || n % (i + 2) == 0) return 0;
  return 1;
}
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int a, b;
  cin >> a >> b;
  vector<long long int> v;
  v.push_back(b);
  while (a < b) {
    if (b % 2 == 0) {
      b = b / 2;
      v.push_back(b);
    } else if (b % 10 == 1) {
      b = b / 10;
      v.push_back(b);
    } else
      break;
  }
  if (a == b) {
    cout << "YES\n" << v.size() << endl;
    for (long long int i = v.size() - 1; i >= 0; i--) cout << v[i] << " ";
  } else
    cout << "NO";
}
