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