#include <bits/stdc++.h>
using namespace std;
const int MX = 1e5 + 9;
const long long INF = (1ll << 60);
const int inf = (1 << 30);
const long long mod = 1e9 + 7;
long long n, k, x;
int main() {
  cin >> n >> k;
  x = n / 2;
  long long a = x / (k + 1);
  cout << a << " " << a * (k) << " " << n - (a + a * k) << endl;
}
