#include <bits/stdc++.h>
int main() {
  long int a, b, i, k = 0;
  long int arr[100000];
  scanf("%ld%ld", &a, &b);
  while (b != 0) {
    arr[k++] = b;
    if (b == a) break;
    if (b % 2 != 0 && b % 10 == 1) {
      b = b / 10;
    } else if (b % 2 == 0) {
      b = b / 2;
    } else {
      b = 0;
      break;
    }
  }
  if (b == 0)
    printf("NO");
  else {
    printf("YES\n");
    printf("%ld\n", k);
    for (i = k - 1; i >= 0; i--) printf("%ld ", arr[i]);
  }
  return 0;
}
