#include <bits/stdc++.h>
using namespace std;
int a, b;
string s;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> a >> b;
  while (b > a) {
    if (b == a) break;
    if (b % 10 == 1)
      s = '1' + s, b /= 10;
    else {
      if (b % 2 == 0)
        b /= 2, s = '2' + s;
      else
        return cout << "NO", 0;
    }
  }
  if (b < a) return cout << "NO", 0;
  cout << "YES\n";
  cout << s.size() + 1 << "\n";
  cout << a << " ";
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '1')
      a = a * 10 + 1;
    else
      a *= 2;
    cout << a << " ";
  }
  return 0;
}
