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