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