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