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