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