#include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     long long t;     cin >> t;     while (t--) {       long long l, r, b, c, a;       long long m;       cin >> l >> r >> m;       for (long long i = l; i <= r; i++) {         a = i;         long long n = m / a, temp = a * n, diff = m - temp;         if (n > 0 && abs(m - temp) <= r - l) {           if (diff >= 0) {             b = r;             c = r - m + temp;           } else {             b = l;             c = l + temp - m;           }           cout << a <<     << b <<     << c <<   n ;           break;         }         n = m / a + 1, temp = a * n, diff = m - temp;         if (abs(m - temp) <= r - l) {           if (diff >= 0) {             b = r;             c = r - m + temp;           } else {             b = l;             c = l + temp - m;           }           cout << a <<     << b <<     << c <<   n ;           break;         }       }     }   }   