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