#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.sync_with_stdio(false);
  long long i, j, k, l, v0, v1, a, c, v, b[1009], n, m, m1;
  while (cin >> c >> k) {
    n = c / 2;
    m = n / (k + 1);
    cout << m << " " << (m * k) << " " << (c - (m + (m * k)));
  }
}
