#include <bits/stdc++.h>
using namespace std;
int t[31];
int main() {
  int a, k;
  cin >> a >> k;
  if (k > a) {
    cout << "NO";
    return 0;
  }
  int x = 0;
  int i = 0;
  while (a > 0) {
    if (a % 2 == 1) {
      x++;
      t[i]++;
    }
    i++;
    a = a / 2;
  }
  i = 30;
  if (x > k) {
    cout << "NO";
    return 0;
  }
  cout << "YES\n";
  while (t[i] == 0) {
    i--;
  }
  while (x < k) {
    while (t[i] == 0) {
      i--;
    }
    t[i]--;
    t[i - 1] += 2;
    x++;
  }
  for (i = 0; i <= 30; i++) {
    for (int j = 0; j < t[i]; j++) {
      cout << (1 << i) << " ";
    }
  }
  return 0;
}
