#include <bits/stdc++.h>
using namespace std;
void print(long long int a[], long long int n) {
  for (long long int i = 0; i < n; i++) {
    cout << a[i] << " ";
  }
  cout << endl;
}
long long int m(long long int x) { return x % 1000000007; }
long long int gcd(long long int a, long long int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
long long int p(long long int a, long long int b) {
  if (b == 0) return 1;
  long long int t = p(a, b / 2);
  if (b % 2 == 0)
    return t * t;
  else
    return a * t * t;
}
long long int t[100000];
signed main() {
  long long int n, k;
  cin >> n >> k;
  long long int l = n / 2;
  long long int x = l / (k + 1);
  long long int a1 = x;
  long long int a2 = k * x;
  long long int a3 = n - a1 - a2;
  cout << a1 << " " << a2 << " " << a3 << endl;
  return 0;
}
