#include <bits/stdc++.h>
using namespace std;
const long long mod = 10000007;
void solve() {
  long long l, r, m;
  cin >> l >> r >> m;
  long long a, b, c;
  for (long long i = l; i <= r; i++) {
    a = i;
    long long x = m % a, y = a - x;
    c = l, b = c + x;
    if (m + c - b > 0 && b <= r) {
      cout << a << " " << b << " " << c << "\n";
      return;
    }
    b = l, c = b + y;
    if (m + c - b > 0 && c <= r) {
      cout << a << " " << b << " " << c << "\n";
      return;
    }
  }
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
