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