#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  cin >> n >> k;
  long long H = n / 2;
  long long cer, dip, tmp, x, y, z, t, L;
  if (H % (k + 1) == 0) {
    dip = H / (k + 1);
    cer = dip * k;
  } else {
    x = H / (k + 1);
    L = H - x * (k + 1);
    y = x * (k + 1);
    dip = y / (k + 1);
    cer = dip * k;
  }
  if (dip + cer <= H) {
    cout << dip << ' ' << cer << ' ' << n - dip - cer;
  } else {
    cout << "0 0 " << n;
  }
}
