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