#include <bits/stdc++.h>
int main() {
  unsigned long long a, b;
  scanf("%lld %lld", &a, &b);
  unsigned long long c = a / (2 * (b + 1));
  unsigned long long d = b * c;
  unsigned long long e = a - (c + d);
  printf("%lld %lld %lld", c, d, e);
  return 0;
}
