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