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