#include <bits/stdc++.h>
using namespace std;
long long MOD = 1000000007;
long long INF = 1000000000000000000;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long T;
  cin >> T;
  while (T--) {
    long long l, r, m;
    cin >> l >> r >> m;
    bool flag = false;
    for (long long i = l; i <= r; ++i) {
      long long tim = (m / i);
      if (tim > 0) {
        long long rem = m % i;
        if (rem <= (r - l)) {
          cout << i << " " << l + rem << " " << l << "\n";
          flag = true;
          break;
        }
      }
      if (flag) break;
      tim++;
      long long rem = tim * i - m;
      if (rem <= (r - l)) {
        cout << i << " " << l << " " << l + rem << "\n";
        flag = true;
        break;
      }
      if (flag) break;
    }
  }
}
