#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, m;
  cin >> n >> k;
  m = k;
  int i, now;
  vector<int> ans;
  for (i = 31; i >= 0; i--) {
    while (n - (1 << i) >= k - 1 and n - (1 << i) >= 0)
      n -= (1 << i), ans.push_back(1 << i), k--;
  }
  if (n or ans.size() != m)
    cout << "NO";
  else {
    cout << "YES" << endl;
    sort(ans.begin(), ans.end());
    for (int i : ans) cout << i << ' ';
  }
}
