#include <bits/stdc++.h>
using namespace std;
const int N = 305000;
const int INF = 105000;
int main() {
  long long n, k;
  cin >> n >> k;
  long long g = (n / 2) / (k + 1);
  long long d = g * k;
  long long ost = n - d - g;
  cout << g << ' ' << d << ' ' << ost;
}
