#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n, k, w, a = 0, b = 0;
  cin >> n;
  cin >> k;
  w = n / 2;
  a = (w) / (k + 1);
  b = k * a;
  cout << a << " " << b << " " << n - a - b << endl;
}
