#include <bits/stdc++.h>
using namespace std;
int n, k;
int main() {
  ios::sync_with_stdio(0), cin.tie(NULL), cout.tie(NULL);
  cin >> n >> k;
  queue<int> pw;
  for (int i = 0; i < 31; i++) {
    if (n & 1 << i) {
      pw.push(1 << i);
    }
  }
  int h = k;
  if (k > n) {
    cout << "NO\n";
  } else {
    k -= pw.size();
    if (k < 0) {
      cout << "NO\n";
      return 0;
    }
    cout << "YES\n";
    for (int i = 0; i < h;) {
      if (pw.front() == 1 || k == 0) {
        cout << pw.front() << " ";
        pw.pop();
        i++;
      } else {
        int x = pw.front();
        pw.pop();
        pw.push(x / 2);
        pw.push(x / 2);
        k--;
      }
    }
  }
  return 0;
}
