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