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