#include <bits/stdc++.h>
#pragma GCC optimize "trapv"
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  ;
  long long int n, k;
  cin >> n >> k;
  long long int a[k];
  fill(a, a + k, 1);
  long long int sum = k;
  for (long long int i = k - 1; i >= 0; --i) {
    while (sum + a[i] <= n) {
      sum += a[i];
      a[i] *= 2;
    }
  }
  if (sum == n) {
    cout << "YES" << '\n';
    for (long long int i = 0; i < k; i++) cout << a[i] << " ";
  } else
    cout << "NO";
  return 0;
}
