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