#include <bits/stdc++.h>
using namespace std;
long long int binpow(long long int a, long long int b) {
  long long int res = 1;
  while (b > 0) {
    if (b & 1) res = res * a;
    a = a * a;
    b >>= 1;
  }
  return res;
}
void solve() {
  long long int l, r, m;
  cin >> l >> r >> m;
  long long int x = r - l;
  long long int rx = max((long long int)1, m - x);
  long long int ry = m + x;
  bool ok = false;
  for (long long int i = l; i < r + 1; i++) {
    long long int t = rx;
    if (rx % i != 0) {
      t = (rx / i + 1) * i;
    }
    if (t <= ry && t >= rx) {
      cout << i << " ";
      if (t - m < 0) {
        cout << r << " " << r + (t - m) << "\n";
      } else {
        cout << l << " " << l + (t - m) << "\n";
      }
      return;
    }
  }
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
