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