#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  cin >> n >> k;
  multiset<long long> S;
  for (int i = 0; i < 31; i++) {
    if (n & (1 << i)) {
      S.insert(1 << i);
    }
  }
  long long size = S.size();
  if (size > k || k > n) {
    cout << "NO" << endl;
    return 0;
  }
  while (S.size() != k) {
    auto it = S.end();
    it--;
    long long val = *it;
    ;
    val = val / 2;
    S.erase(it);
    S.insert(val);
    S.insert(val);
  }
  cout << "YES" << endl;
  for (auto it = S.begin(); it != S.end(); it++) {
    cout << *it << " ";
  }
  return 0;
}
