#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, t;
  cin >> n >> k;
  t = n;
  multiset<long long> a;
  multiset<long long>::iterator it, tempi;
  for (long long i = 30; i >= 0; i--) {
    if (n >= (1 << i)) {
      a.insert(1 << i);
      n %= (1 << i);
    }
  }
  if (k > t || k < a.size())
    cout << "NO";
  else {
    it = a.begin();
    cout << "YES \n";
    k -= a.size();
    while (k) {
      if (*it != 1) {
        k--;
        if (it != a.begin()) {
          it--;
          tempi = it;
          tempi++;
          a.insert(*(tempi) / 2);
          a.insert(*(tempi) / 2);
          a.erase(tempi);
        } else {
          tempi = it;
          a.insert(*(tempi) / 2);
          a.insert(*(tempi) / 2);
          a.erase(tempi);
          it = a.begin();
        }
      } else
        it++;
    }
    for (tempi = a.begin(); tempi != a.end(); tempi++) cout << *tempi << " ";
  }
}
