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