#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main() {
  int n, k;
  cin >> n >> k;
  multiset<int, greater<int>> ss;
  if (k > n) {
    cout << "NO" << endl;
  } else if (log2((double)n) - (int)log2(n) != 0 && k == 1) {
    cout << "NO" << endl;
  } else {
    bitset<32> bin(n);
    for (int i = 0; i < 32; i++) {
      if (bin[i]) {
        ss.emplace(1 << i);
      }
    }
    while (ss.size() < k && *ss.begin() > 1) {
      int num = *ss.begin();
      ss.erase(ss.begin());
      ss.emplace(num / 2);
      ss.emplace(num / 2);
    }
    if (ss.size() == k) {
      cout << "YES" << endl;
      for (auto x : ss) {
        cout << x << " ";
      }
    } else {
      cout << "NO" << endl;
    }
  }
}
