#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long n, k, i;
  cin >> n >> k;
  long long b = __builtin_popcount(n);
  if (k > n || k < b) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  priority_queue<long long> q;
  for (i = 0; i <= 30; i++) {
    if (n & (1LL << i)) {
      q.push(1LL << i);
    }
  }
  while (q.size() < k) {
    long long t = q.top();
    q.pop();
    q.push(t >> 1);
    q.push(t >> 1);
  }
  while (q.size()) {
    cout << q.top() << " ";
    q.pop();
  }
}
