#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, o;
  cin >> n >> m;
  long long maxwin = n / 2;
  long long part = maxwin / (1 + m);
  cout << part << " " << (part * m) << " " << n - (part * m) - part;
}
