#include <bits/stdc++.h>
using namespace std;
long long a, b;
priority_queue<long long> pq;
void shitweight() {
  long long aa = a, bb = 1;
  int i = 0;
  while (aa) {
    if (aa & 1) pq.push(bb);
    aa >>= 1;
    bb <<= 1;
  }
}
void printshit() {
  long long aa = a;
  long long shit = 1;
  int fi = 1;
  while (aa) {
    if (aa & 1) {
      if (fi)
        fi = 0;
      else
        printf(" ");
      cout << shit;
      shit <<= 1;
    }
    aa >>= 1;
  }
}
int main() {
  while (cin >> a >> b) {
    while (!pq.empty()) pq.pop();
    shitweight();
    while (pq.size() < b) {
      if (pq.top() == 1) break;
      long long k = (pq.top() >> 1);
      pq.pop();
      pq.push(k);
      pq.push(k);
    }
    if (pq.size() > b || pq.size() < b) {
      cout << "NO" << endl;
      continue;
    } else if (pq.size() == b) {
      cout << "YES" << endl;
      cout << pq.top();
      pq.pop();
      while (!pq.empty()) {
        cout << " " << pq.top();
        pq.pop();
      }
      cout << endl;
      continue;
    }
  }
}
