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