#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, i;
  string r;
  cin >> a >> b;
  for (i = 0; true; i++) {
    r = to_string(b) + " " + r;
    if (b == a) {
      cout << "YES\n" << i + 1 << "\n" << r;
      break;
    } else if (b % 10 == 1 && b > a) {
      b = (b - 1) / 10;
    } else if (b % 2 == 0 && b > a) {
      b = b / 2;
    } else {
      cout << "NO";
      break;
    }
  }
}
