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