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