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