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