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