#include <bits/stdc++.h>
using namespace std;
unsigned long long n, m, num, a, b, c;
int i;
int main() {
  scanf("%lld%lld", &n, &m);
  if (m + 1 > n / 2) {
    printf("%d %d %lld", 0, 0, n);
    return 0;
  }
  num = n / 2;
  a = num / (m + 1);
  b = m * a;
  c = n - a - b;
  printf("%lld %lld %lld", a, b, c);
}
