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