#include <bits/stdc++.h>
using namespace std;
const int N = 1000 + 5;
int n, k, a, b;
int x[N];
int main() {
  scanf("%d%d", &a, &b);
  int cnt = 0;
  while (b >= a) {
    x[cnt++] = b;
    if (b == a) break;
    if (b % 2) {
      b--;
      if (b % 10 == 0)
        b /= 10;
      else
        break;
    } else {
      b /= 2;
    }
  }
  if (b == a) {
    printf("YES\n");
    printf("%d\n", cnt);
    for (int i = cnt - 1; i >= 0; i--) {
      printf("%d%c", x[i], i == 0 ? '\n' : ' ');
    }
  } else {
    printf("NO\n");
  }
  return 0;
}
