#include <bits/stdc++.h>
using namespace std;
int main() {
  long long dip, cer, nw, mid, n, k;
  cin >> n >> k;
  mid = n / 2;
  dip = mid / (k + 1);
  cer = dip * k;
  nw = n - (dip + cer);
  cout << dip << " " << cer << " " << nw << endl;
}
