#include <bits/stdc++.h>
using namespace std;
long long int A[100006], B[100006];
int main() {
  ios ::sync_with_stdio(false);
  cin.tie(0);
  long long int n, k, a, b, c;
  cin >> n >> k;
  a = (n / 2) / (k + 1);
  b = a * k;
  c = n - (a + b);
  cout << a << " " << b << " " << c;
  return 0;
}
