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