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