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