#include <bits/stdc++.h>
using namespace std;
int mk = 0;
vector<int> ans, cur;
void fg(long long a, long long b) {
  if (mk) return;
  if (a > 1e9) return;
  if (a == b) {
    ans = cur;
    mk = 1;
    return;
  }
  string t = to_string(a);
  t += "1";
  long long c = stoll(t);
  cur.push_back(c);
  fg(c, b);
  cur.pop_back();
  cur.push_back(2 * a);
  fg(2 * a, b);
  cur.pop_back();
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int a, b;
  cin >> a >> b;
  cur.push_back(a);
  fg(a, b);
  if (mk) {
    cout << "YES\n";
    cout << ans.size() << '\n';
    for (int i = 0; i < ans.size(); i++) cout << ans[i] << " ";
    cout << '\n';
  } else
    cout << "NO\n";
}
