#include <bits/stdc++.h>
using namespace std;
clock_t time_p = clock();
void dem() {
  time_p = clock() - time_p;
  cerr << "Time Taken : " << (float)(time_p) / CLOCKS_PER_SEC << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int n, k;
  cin >> n >> k;
  priority_queue<int> p;
  for (int i = 30; i >= 0; --i)
    if (n & (1 << i)) p.push(i);
  while (p.size() < k) {
    int t = p.top();
    p.pop();
    if (t == 0) break;
    p.push(t - 1);
    p.push(t - 1);
  }
  if (p.size() == k) {
    cout << "YES";
    cout << "\n";
    while (p.size()) {
      cout << (1 << p.top()) << " ";
      p.pop();
    }
  } else
    cout << "NO";
  return 0;
}
