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