#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int t;
  cin >> t;
  while (t--) {
    long long l, r, m;
    cin >> l >> r >> m;
    for (long long a = l; a <= r; ++a) {
      long long rem = m % a;
      long long x = r - l;
      if (rem <= r - l) {
        if (m - rem != 0) {
          cout << a << " " << r << " " << r - rem << endl;
          break;
        }
      }
      if (l + a - rem <= r) {
        if ((m + a - rem) % a == 0) {
          cout << a << " " << l << " " << l + a - rem << endl;
          break;
        }
      }
    }
  }
  return 0;
}
