#include <bits/stdc++.h>
using namespace std;
const long double pi = acos((long double)-1.0);
const double eps = (double)1e-9;
const int inf = (int)1e9 + 7;
template <typename T>
ostream& operator<<(ostream& os, vector<T> v) {
  for (auto i : v) os << i << ' ';
  return os;
}
template <typename T>
istream& operator>>(istream& is, vector<T>& v) {
  for (auto& i : v) is >> i;
  return is;
}
const int fastio = []() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  return 0;
}();
int main(void) {
  int n, k;
  cin >> n >> k;
  if (n < k * 1ll * (k + 1) / 2) {
    return cout << "NO", 0;
  }
  long long int nn = n - k * (k + 1) / 2;
  int a[k];
  for (int i = 0; i < k; i++) {
    a[i] = i + 1 + (nn / k) + (i >= k - (nn % k));
  }
  if (nn != k - 1) {
    cout << "YES" << '\n';
    for_each(a, a + k, [](int a) { cout << a << " "; });
  } else {
    if (k > 3) {
      a[1]--;
      a[k - 1]++;
    }
    if (k == 2 || k == 3) {
      cout << "NO";
      return 0;
    }
    cout << "YES" << '\n';
    for_each(a, a + k, [](int a) { cout << a << " "; });
  }
  return 0;
}
