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