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