#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  int t;
  cin >> t;
  long long l[20], r[20], m[20];
  long long i, a, n;
  long long left, right;
  for (i = 0; i < t; i++) {
    cin >> l[i] >> r[i] >> m[i];
  }
  for (i = 0; i < t; i++) {
    left = l[i] - r[i] + m[i];
    right = r[i] - l[i] + m[i];
    for (a = l[i]; a <= r[i]; a++) {
      n = floor(right / a);
      if (left <= a * n && a * n <= right) {
        break;
      }
    }
    if (a * n - m[i] < 0)
      cout << a << " " << r[i] << " " << r[i] + a * n - m[i] << endl;
    else
      cout << a << " " << r[i] + m[i] - a * n << " " << r[i] << endl;
  }
  return 0;
}
