#include <bits/stdc++.h>
using namespace std;
const long long maxn = 1e5 + 7;
long long n, k, a;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> k;
  a = n / (2 * (k + 1));
  cout << a << " " << a * k << " " << n - a * (k + 1);
}
