#include <bits/stdc++.h>
using namespace std;
using INT = long long;
using pii = pair<int, int>;
using VI = vector<int>;
template <typename T, typename U>
inline void smin(T &a, const U &b) {
  if (a > b) a = b;
}
template <typename T, typename U>
inline void smax(T &a, const U &b) {
  if (a < b) a = b;
}
int power(int a, int b, int mod, int ans = 1) {
  for (; b; b >>= 1, a = 1LL * a * a % mod)
    if (b & 1) ans = 1LL * ans * a % mod;
  return ans;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  INT n, k;
  cin >> n >> k;
  INT a, b, c;
  a = n / 2 / (k + 1);
  b = a * k;
  cout << a << ' ' << b << ' ' << n - a - b << endl;
}
