#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)1e5 + 10;
int n, k, ind, x;
vector<int> v;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  cin >> n >> k;
  x = n;
  for (int i = 30; i >= 0; i--) {
    if (n >= (1 << i)) {
      n -= (1 << i);
      v.push_back(i);
    }
  }
  if (k > x) {
    cout << "NO";
    return cout << '\n', 0;
  }
  if (v.size() > k) {
    cout << "NO";
    return cout << '\n', 0;
  }
  while (v.size() != k) {
    if (v[ind] > 0) {
      v[ind]--;
      v.push_back(v[ind]);
    }
    ind++;
    if (ind >= v.size()) ind = 0;
  }
  cout << "YES" << '\n';
  for (int i = 0; i < v.size(); i++) cout << (1 << v[i]) << " ";
  return cout << '\n', 0;
}
