#include <bits/stdc++.h>
using namespace std;
long long n, k, sum[210000], pp;
int main() {
  cin >> n >> k;
  long long now = n, cnt = 0;
  while (now) {
    if (now % 2) {
      sum[200000 + cnt] = 1;
      pp++;
    }
    now /= 2;
    cnt++;
  }
  if (pp > k)
    printf("No\n");
  else {
    k -= pp;
    printf("Yes\n");
    for (int i = 200100; i > 1 - 1; i--) {
      if (k == 0) break;
      if (sum[i] > k) {
        for (int j = 1; j < 200100 + 1; j++) {
          if (k == 0) break;
          if (sum[j] != 0) {
            int num = j;
            while (k) {
              k--;
              sum[num]--;
              sum[num - 1] += 2;
              num--;
            }
            break;
          }
        }
        break;
      }
      sum[i - 1] += (2 * sum[i]);
      k -= sum[i];
      sum[i] = 0;
    }
    for (int i = 200100; i > 1 - 1; i--) {
      if (sum[i])
        for (int j = 1; j < sum[i] + 1; j++) printf("%d ", i - 200000);
    }
    printf("\n");
  }
  return 0;
}
