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