#include <bits/stdc++.h>
using namespace std;
int nos;
void split(int n) {
  if (nos == 0 || n == 1)
    cout << n << ' ';
  else {
    --nos;
    split(n / 2);
    split(n / 2);
  }
}
int main() {
  ios::sync_with_stdio(false);
  int n, k;
  cin >> k >> n;
  if (n > k)
    cout << "NO" << endl;
  else {
    vector<int> nums;
    for (int i = 0; k; k /= 2, ++i) {
      if (k % 2) nums.push_back(pow(2, i));
    }
    nos = n - nums.size();
    if (nos < 0)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      for (auto &i : nums) split(i);
    }
  }
  return 0;
}
