#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n, i, k;
  cin >> n >> k;
  if (k < __builtin_popcountll(n) or k > n) return cout << "NO", 0;
  multiset<int, greater<int>> s;
  for (i = 0; (1 << i) <= n; i++)
    if (((1 << i) | n) == n) s.insert(1 << i);
  while (s.size() < k) {
    int x = *s.begin();
    s.insert(x / 2);
    s.insert(x / 2);
    s.erase(s.begin());
  }
  cout << "YES"
       << "\n";
  for (auto it : s) cout << it << ' ';
  return 0;
}
