#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long int t;
  cin >> t;
  for (long long int tt = 0; tt < t; tt++) {
    long long int l, r, m;
    cin >> l >> r >> m;
    for (int i = l; i <= r; i++) {
      if ((m % i) == 0) {
        cout << i << " " << i << " " << i << endl;
        break;
      } else {
        long long int q = m / i;
        long long int d1 = m - q * i;
        long long int d2 = (q + 1) * i - m;
        if (d1 <= (r - l) && q > 0) {
          cout << i << " " << r << " " << r - d1 << endl;
          break;
        } else if (d2 <= (r - l)) {
          cout << i << " " << r - d2 << " " << r << endl;
          break;
        }
      }
    }
  }
  return 0;
}
