#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
long long a, b;
vector<int> operacoes;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin >> a >> b;
  operacoes.push_back(b);
  while (true) {
    if (a == b) {
      reverse(operacoes.begin(), operacoes.end());
      cout << "YES" << '\n' << (int)operacoes.size() << '\n';
      for (int i = 0; i < (int)operacoes.size(); i++)
        cout << operacoes[i] << " ";
      break;
    }
    if (b % 2 == 0) {
      b /= 2;
      operacoes.push_back(b);
    } else {
      int last = b % 10;
      if (last == 1) {
        b -= 1;
        b /= 10;
        if (b < a) {
          cout << "NO" << '\n';
          break;
        } else {
          operacoes.push_back(b);
        }
      } else {
        cout << "NO" << '\n';
        break;
      }
    }
  }
  return 0;
}
