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