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