#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  cin >> n >> k;
  vector<long long> vc;
  long long i = 0;
  while (n > 0) {
    if (n % 2) vc.push_back(pow(2, i));
    n /= 2;
    i++;
  }
  for (long long i = 0; i < vc.size() and vc.size() < k; i++) {
    while (vc[i] > 1 and vc.size() < k) {
      vc.push_back(vc[i] / 2);
      vc[i] = vc[i] / 2;
    }
  }
  if (vc.size() == k) {
    cout << "YES" << endl;
    for (long long i = 0; i < vc.size(); i++) cout << vc[i] << ' ';
  } else
    cout << "NO" << endl;
}
