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