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