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