#include <bits/stdc++.h>
using namespace std;
long long m = 0, b, n = 0, c1 = 0, c2 = 0, c3 = 0, c4 = 0, i, j = 1,
          a[111111] = {0}, x = 0, y = 0, z = 0, k;
string s;
char r[4];
int main() {
  cin >> n >> k;
  x = n / (2 * (k + 1));
  cout << x << " " << x * k << " " << n - x - x * k;
}
