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