#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, x, left, right;
  cin >> n >> k;
  left = -1, right = n / 2 + 1;
  while (right - left > 1) {
    x = (right + left) / 2;
    if (n / (2 * (1 + k)) >= x)
      left = x;
    else
      right = x;
  }
  x = left;
  cout << x << ' ' << x * k << ' ' << n - (x + x * k);
  return 0;
}
