#include <bits/stdc++.h>
using namespace std;
const long long int inf = 1e13;
long long int n, k;
long long int d, c, w;
int main() {
  scanf("%I64d%I64d", &n, &k);
  d = (long long int)floor(n * 1.0 / (2 * k + 2));
  c = k * d;
  printf("%I64d %I64d %I64d\n", d, c, n - c - d);
  return 0;
}
