#include <bits/stdc++.h>
using namespace std;
long ans[1000005];
int main() {
  long a, b;
  cin >> a >> b;
  ans[0] = b;
  long i = 1, j;
  bool flag = 0;
  while (1) {
    if (a == b) {
      break;
    }
    if (b < a) {
      flag = 1;
      break;
    }
    if (b % 2 == 0) {
      b = b / 2;
      ans[i] = b;
      i++;
    } else if (b % 10 == 1) {
      b = (b - 1) / 10;
      ans[i] = b;
      i++;
    } else {
      flag = 1;
      break;
    }
  }
  if (flag == 1) {
    cout << "NO";
  } else {
    cout << "YES\n";
    cout << i << endl;
    for (j = i - 1; j >= 0; j--) cout << ans[j] << " ";
  }
  return 0;
}
