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