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