#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  while (scanf("%lld%lld", &n, &k) > 0) {
    long long d = n / (2 + 2 * k);
    printf("%lld %lld %lld\n", d, k * d, n - d - k * d);
  }
}
