#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int t;
  cin >> t;
  while (t-- > 0) {
    long long l, r, m;
    cin >> l >> r >> m;
    long long d = r - l;
    bool ok = false;
    long long ba, bb, bc;
    for (long long a = l; a <= r; a++) {
      long long coef = m / a;
      for (long long n = max(1ll, coef - 3); n <= coef + 3; n++) {
        long long diff = m - a * n;
        if (!ok && -d <= diff && diff <= d) {
          ba = a;
          if (diff < 0)
            bb = l, bc = l - diff;
          else
            bc = l, bb = l + diff;
          ok = true;
        }
      }
    }
    cout << ba << ' ' << bb << ' ' << bc << endl;
  }
  return 0;
}
