#include <bits/stdc++.h>
using namespace std;
int n, k;
vector<int> ans;
int main() {
  cin >> n >> k;
  if (k > n) {
    cout << "NO";
    return 0;
  }
  for (int i = 30; i >= 0; i--) {
    while (n >= (1 << i)) {
      n -= (1 << i);
      ans.push_back(1 << i);
    }
  }
  if ((int)ans.size() > k)
    cout << "NO";
  else {
    int t = 0;
    while (k > ans.size()) {
      while (ans[t] <= 1) t++;
      ans[t] /= 2;
      ans.push_back(ans[t]);
    }
    cout << "YES" << endl;
    for (int i = 0; i < ans.size(); i++) cout << ans[i] << " ";
  }
  return 0;
}
