#include <bits/stdc++.h>
using namespace std;
const int inf = 0x3f3f3f3f;
const int maxn = 100000;
int main() {
  long long n, k;
  cin >> n >> k;
  long long x = n / (2 * (k + 1));
  cout << x << " " << k * x << " " << n - (k + 1) * x << endl;
}
