#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  long long int n = 0, k = 0;
  cin >> n >> k;
  long long int m = n / 2;
  long long int r = m / (k + 1);
  cout << r << ' ' << r * k << ' ' << (n - r - r * k) << '\n';
  return 0;
}
