#include <bits/stdc++.h>
using namespace std;
double pi = 2 * acos(0.0);
template <typename T>
ostream &operator<<(ostream &os, const vector<T> &v) {
  os << '{';
  for (const auto &x : v) os << " " << x;
  return os << '}';
}
void solve() {
  long long int l, r, m;
  cin >> l >> r >> m;
  long long int a, b, c;
  long long int mm = r - l;
  long long int p, q, ss;
  if (m < l) {
    a = l;
    b = l;
    c = l + (l - m);
    cout << a << " " << b << " " << c << endl;
    return;
  }
  for (long long int i = l; i <= r; i++) {
    p = m % i;
    q = m / i;
    q++;
    ss = q * i;
    ss -= m;
    if (p <= mm) {
      a = i;
      c = l;
      b = c + p;
      break;
    } else if (ss <= mm) {
      a = i;
      b = l;
      c = l + ss;
      break;
    }
  }
  cout << a << " " << b << " " << c << endl;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int test_cases;
  cin >> test_cases;
  for (int tc = 1; tc <= test_cases; tc++) {
    solve();
  }
  return 0;
}
