#include <bits/stdc++.h>
using namespace std;
const long long INF = 1E18;
const int N = 1e3 + 1;
const long long MOD = 1E9 + 7;
long long n, k, w;
int main() {
  cin >> n >> k;
  if (n / 2 <= k) return cout << "0 0 " << n, 0;
  w = n / 2 / (k + 1);
  cout << w << " " << w * k << " " << n - w * (k + 1);
}
