#include <bits/stdc++.h>
int main() {
  int a, b, l = 0, f = 1, i, m[32];
  scanf("%d%d", &a, &b);
  m[l++] = b;
  do {
    if (b % 10 == 1) {
      b /= 10;
      m[l++] = b;
    } else {
      if (b % 2 == 0) {
        b /= 2;
        m[l++] = b;
      } else {
        f = 0;
        break;
      }
    }
  } while (a < b);
  if ((f == 1) && (a == b)) {
    printf("YES\n%d\n", l);
    for (i = l - 1; i >= 0; i--) printf("%d ", m[i]);
  } else
    printf("NO");
  return 0;
}
