#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long l, r, m;
  cin >> l >> r >> m;
  long long mn = m - (r - l);
  long long mx = m + (r - l);
  long long n = 1;
  for (long long n = mn / r; n <= mx / l; n++) {
    if (n == 0) continue;
    long long x = mn / n;
    long long y = mx / n;
    if (y < l || x > r) {
      continue;
    }
    x = max(x, l);
    y = min(y, r);
    for (long long i = x; i <= y; i++) {
      if (i >= l && i <= r) {
        long long z = n * i;
        long long p = n * i - m;
        if (p < 0 && r + p >= l) {
          cout << i << " " << r << " " << r + p << "\n";
          return;
        } else if (p >= 0 && l + p <= r) {
          cout << i << " " << l << " " << l + p << "\n";
          return;
        }
      }
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long t;
  t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
