#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m;
  cin >> n >> m;
  long long c = 0, d = 0, f = 0;
  f = ceil(n * 1.0 / 2);
  n -= f;
  long long x = n / (m + 1);
  d = x;
  c = x * m;
  n -= (x);
  n -= x * m;
  f += n;
  cout << d << " " << c << " " << f;
  return 0;
}
