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