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