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