#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k, x, y, p, q, z;
  cin >> n >> k;
  p = n / 2;
  y = p / (k + 1);
  x = y * k;
  z = n - (x + y);
  cout << y << " " << x << " " << z;
  return 0;
}
