#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1.0);
const double pii = 2 * pi;
const double eps = 1e-6;
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(NULL);
  std::cout.tie(NULL);
  int n, k;
  std::cin >> n >> k;
  std::vector<int> bn{};
  {
    int a, b;
    a = n;
    b = 1;
    while (a) {
      if (a % 2) {
        bn.push_back(b);
      }
      a /= 2;
      b *= 2;
    }
  }
  if (k < bn.size() || k > n) {
    std::cout << "NO\n";
    return 0;
  }
  std::cout << "YES" << std::endl;
  std::queue<int> q{}, ans{};
  for (int i = (int)0; i < (int)bn.size(); i++) {
    q.push(bn[i]);
  }
  while (!q.empty()) {
    if (q.size() == k) {
      while (!q.empty()) {
        ans.push(q.front());
        q.pop();
      }
    } else {
      if (q.front() == 1) {
        q.pop();
        ans.push(1);
        k--;
      } else {
        int a = q.front();
        q.pop();
        q.push(a / 2);
        q.push(a / 2);
      }
    }
  }
  while (!ans.empty()) {
    std::cout << ans.front() << " ";
    ans.pop();
  }
  std::cout << "\n";
  return 0;
}
