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