#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, k;
  cin >> n >> k;
  if (n < k) {
    cout << "NO" << '\n';
    return 0;
  }
  vector<int> v(k, 1);
  n -= k;
  for (int &i : v)
    while (n >= i) {
      n -= i;
      i *= 2;
    }
  if (n)
    cout << "NO";
  else {
    cout << "YES" << '\n';
    for (int x : v) cout << x << " ";
  }
}
