#include <bits/stdc++.h>
using namespace std;
void solve();
int main() {
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
namespace input {
inline int nextInt() {
  int res = 0;
  char c = getchar();
  while (c < '0' || c > '9') c = getchar();
  while (c >= '0' && c <= '9') res = res * 10 + c - '0', c = getchar();
  return res;
}
inline long long nextLong() {
  long long res = 0;
  char c = getchar();
  while (c < '0' || c > '9') c = getchar();
  while (c >= '0' && c <= '9') res = res * 10 + c - '0', c = getchar();
  return res;
}
inline bool isSpace(const char &c) {
  return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
}
inline void next(char *str) {
  char c = getchar();
  while (isSpace(c)) c = getchar();
  size_t head = 0;
  while (!isSpace(c)) str[head++] = c, c = getchar();
  str[head] = 0;
}
inline char nextChar() {
  char c = getchar();
  while (isSpace(c)) c = getchar();
  return c;
}
}  // namespace input
using namespace input;
const int N = 2e5 + 5;
long long a, b;
int p[N];
void rec(long long x, int l) {
  if (x == b) {
    cout << "YES" << '\n';
    cout << l + 1 << '\n';
    cout << a << ' ';
    for (int i = 0; i < l; i++) {
      if (p[i] == 1) {
        a <<= 1;
      } else {
        a = a * 10 + 1;
      }
      cout << a << ' ';
    }
    exit(0);
  } else if (x < b) {
    p[l] = 1;
    rec(x << 1, l + 1);
    p[l] = 2;
    rec(x * 10 + 1, l + 1);
  }
}
void solve() {
  cin >> a >> b;
  rec(a, 0);
  cout << "NO\n";
}
