#include <bits/stdc++.h>
using namespace std;
const long double PI = acosl(-1.0);
const long long mod = 1e9 + 7;
const int MAX = 300010;
long long n, k;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  cin >> n >> k;
  long long l = 0, r = 1e13, ans = 1;
  while (l <= r) {
    long long mid = (l + r) / 2;
    if (mid + k * mid <= n / 2 && log10(k) + log10(mid) <= log10(n / 2))
      ans = mid, l = mid + 1;
    else
      r = mid - 1;
  }
  cout << ans << ' ' << (long long)(ans * k) << ' '
       << (long long)n - ans * (k + 1);
  return 0;
}
