#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, temp, ab[100001], count = 0;
  cin >> a >> b;
  temp = b;
  while (1) {
    if (temp <= 0) {
      cout << "NO\n";
      return 0;
    }
    if (a == temp) {
      break;
    }
    if (temp % 2 == 0) {
      temp /= 2;
      ab[count++] = temp;
    } else if (temp % 10 == 1) {
      temp = (temp - 1) / 10;
      ab[count++] = temp;
    } else if ((temp % 10 != 1) || temp < a) {
      cout << "NO\n";
      return 0;
    }
  }
  cout << "YES\n" << count + 1 << "\n";
  while (count) {
    cout << ab[--count] << " ";
  }
  cout << b;
  return 0;
}
