#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, k;
  cin >> n >> k;
  long long x = (n) / (2 * (k + 1));
  cout << x << " " << k * x << " " << (n - (k + 1) * x);
  return 0;
}
