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