#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long T;
  cin >> T;
  for (long long U = 1; U <= T; U++) {
    long long l, r, m;
    cin >> l >> r >> m;
    long long d = r - l;
    for (long long i = r; i >= l; i--) {
      long long x = m % i;
      if (x == 0) {
        cout << i << " " << l << " " << l << "\n";
        break;
      } else if (i - x <= d) {
        cout << i << ' ' << l << ' ' << l + (i - x) << "\n";
        break;
      } else if (x <= d && m - x > 0) {
        cout << i << ' ' << l + x << ' ' << l << "\n";
        break;
      }
    }
  }
  return 0;
}
