#include <bits/stdc++.h>
using namespace std;
struct Node {
  long long val, pos;
};
deque<long long> dq;
bool flag = false;
void go(long long a, long long b) {
  if (a > b) return;
  if (a == b) {
    cout << "YES" << endl;
    dq.push_back(b);
    cout << dq.size() << endl;
    flag = true;
    auto it = dq.begin();
    while (it != dq.end()) {
      cout << *it << ' ';
      it++;
    }
    cout << endl;
  }
  dq.push_back(a);
  go(a * 2, b);
  go(a * 10 + 1, b);
  dq.pop_back();
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long a, b;
  cin >> a >> b;
  go(a, b);
  if (flag == false) cout << "NO" << endl;
  return 0;
}
