#include <bits/stdc++.h>
using namespace std;
int a[32], x[32];
bool judge(int n) {
  for (int i = 0; i <= 31; i++)
    if (n == x[i]) return true;
  return false;
}
int main() {
  int n, k, u = 1;
  scanf("%d%d", &n, &k);
  for (int j = 0; j < 32; j++) x[j] = u, u *= 2;
  if (k > n || (k == 1 && !judge(n))) {
    printf("NO\n");
    return 0;
  }
  int i = 0;
  while (n) {
    a[i] = n % 2;
    n /= 2;
    i++;
  }
  int cnt = 0;
  for (int j = 0; j < 32; j++)
    if (a[j]) cnt++;
  if (cnt > k) {
    printf("NO\n");
    return 0;
  }
  while (cnt < k)
    for (int j = 31; j >= 1; j--) {
      if (cnt == k) break;
      if (a[j]) {
        for (int h = 0; h < j; h++) {
          if (k - cnt >= x[j - h] - 1) {
            cnt += x[j - h] - 1;
            a[h] += x[j - h];
            a[j]--;
            break;
          }
        }
      }
    }
  printf("YES\n");
  for (int j = 0; j <= 31; j++)
    for (int h = 0; h < a[j]; h++) printf("%d ", x[j]);
  return 0;
}
