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