#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.sync_with_stdio(false);
  cin.tie(0);
  int n, k;
  cin >> n >> k;
  int bits = __builtin_popcount(n);
  if (n < k || bits > k) return 0 * puts("NO");
  vector<int> resp;
  for (int i = 0; i < 31; ++i)
    if ((n & (1 << i))) resp.push_back(1 << i);
  int idx = resp.size() - 1;
  while (resp.size() < k) {
    int j = resp[idx];
    if (j >= 2) {
      resp.erase(resp.begin() + idx);
      resp.push_back(j / 2);
      resp.push_back(j / 2);
      idx = resp.size() - 1;
    }
    --idx;
  }
  cout << "YES\n";
  for (int i : resp) cout << i << " ";
  cout << endl;
  return 0;
}
