#include <bits/stdc++.h>
#pragma optimization_level 3
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx")
using namespace std;
const long long MAXN = 1e+2 + 7;
const long long MOD = 1e+9 + 7, INF = 0x7f7f7f7f7f7f7f7f;
const int INFi = 0x7f7f7f7f;
double EPS = 1e-9;
double PI = acos(-1);
long long l, r, m, flag, t, t1, t2, i;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed;
  cout << setprecision(10);
  ;
  cin >> t;
  while (t--) {
    cin >> l >> r >> m;
    for (i = l; i <= r; i++) {
      t1 = (i - m % i) % i;
      t2 = m % i;
      if (m < i && r - l >= t1) {
        cout << i << ' ' << l << ' ' << l + t1;
        cout << "\n";
        break;
      } else if (m >= i) {
        if (r - l >= t1) {
          cout << i << ' ' << l << ' ' << l + t1;
          cout << "\n";
          break;
        } else if (r - l >= t2) {
          cout << i << ' ' << l + t2 << ' ' << l;
          cout << "\n";
          break;
        }
      }
    }
  }
}
