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