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