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