#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 b = k * a;
  cout << a << " " << b << " " << n - a - b << endl;
  return 0;
}
