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