#include <bits/stdc++.h>
using namespace std;
int a, b;
vector<int> res;
int main() {
  scanf("%d%d", &a, &b);
  while (true) {
    res.push_back(b);
    if (b == a) break;
    if (b < a) {
      printf("NO");
      return 0;
    }
    if (b % 2 == 0)
      b /= 2;
    else if (b % 10 == 1)
      b /= 10;
    else {
      printf("NO");
      return 0;
    }
  }
  printf("YES\n%u\n", res.size());
  while (!res.empty()) printf("%d ", res.back()), res.pop_back();
  return 0;
}
