#include <bits/stdc++.h>
using namespace std;
vector<long long> rs;
int main() {
  ios::sync_with_stdio(false);
  long long n, m, no = 0;
  cin >> n >> m;
  while (m > n) {
    if ((m - 1) % 10 == 0) {
      rs.push_back(m);
      m /= 10;
    } else if (m % 2 == 0) {
      rs.push_back(m);
      m /= 2;
    } else {
      no = 1;
      break;
    }
  }
  if (m == n && !no) {
    rs.push_back(n);
    cout << "YES" << endl << rs.size() << endl;
    for (int i = rs.size() - 1; i >= 0; i--) cout << rs[i] << ' ';
  } else
    cout << "NO" << endl;
  return 0;
}
