#include <bits/stdc++.h>
using namespace std;
int T;
long long m, l, r;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  cin >> T;
  while (T--) {
    cin >> l >> r >> m;
    for (long long a = l; a <= r; a++) {
      long long k = (m + r - l) / a;
      if (k > 0) {
        long long delta = k * a - m;
        if (delta >= 0 && delta <= r - l) {
          cout << a << " " << l << " " << l + delta << endl;
          break;
        }
      }
      if (m >= r - l) {
        if ((m - (r - l)) % a == 0 && m != r - l)
          k = (m - (r - l)) / a;
        else
          k = (m - (r - l)) / a + 1;
        long long delta = m - k * a;
        if (delta >= 0 && delta <= r - l) {
          cout << a << " " << l + delta << " " << l << endl;
          break;
        }
      }
    }
  }
  return 0;
}
