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