#include <bits/stdc++.h>
using namespace std;
void open() {}
int main() {
  open();
  unsigned long long n, k;
  cin >> n >> k;
  unsigned long long mx = n / 2;
  unsigned long long x = mx / (1 + k);
  if (x != 0) {
    cout << x << ' ' << x * k << ' ' << n - (x + k * x);
  } else {
    cout << "0 0 " << n;
  }
  return 0;
}
