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