#include <bits/stdc++.h>
using namespace std;
long long int m, n, a[100000];
int main() {
  while (scanf("%lld%lld", &m, &n) != EOF) {
    int k = 0, flag = 1;
    while (m < n) {
      a[k++] = n;
      if (n % 10 == 1)
        n /= 10;
      else if (n % 2 == 0)
        n /= 2;
      else {
        printf("NO\n");
        exit(0);
      }
    }
    if (m != n)
      printf("NO\n");
    else {
      a[k++] = m;
      printf("YES\n");
      printf("%d\n", k);
      for (int i = k - 1; i >= 0; i--) printf("%lld ", a[i]);
      printf("\n");
    }
  }
  return 0;
}
