#include <bits/stdc++.h>
#pragma GCC target("sse4.2")
using namespace std;
priority_queue<int> pq;
int n, k;
bool solve() {
  int x = 1;
  while (n) {
    if (n & 1) pq.push(x);
    x <<= 1;
    n >>= 1;
  }
  if (pq.size() > k) return 0;
  while (pq.top() != 1 and pq.size() < k) {
    int t = pq.top() >> 1;
    pq.pop();
    pq.push(t);
    pq.push(t);
  }
  return (pq.size() == k ? 1 : 0);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k;
  if (!solve()) return cout << "NO", 0;
  cout << "YES\n";
  while (pq.size()) {
    cout << pq.top() << ' ';
    pq.pop();
  }
  return 0;
}
