#include <bits/stdc++.h>
using namespace std;
long long int mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    long long int l, r, m;
    cin >> l >> r >> m;
    long long int nn, xx;
    long long int ans = LLONG_MAX;
    for (long long int i = l; i <= r; i++) {
      long long int start = 1, end = 1e10;
      long long int flag = 1;
      while (start <= end) {
        long long int mid = (start + end) / 2;
        long long int diff = abs(mid * i - m);
        if (diff <= (r - l)) {
          if ((mid * i - m) <= 0) {
            cout << i << " " << r << " " << r - diff << "\n";
          } else {
            cout << i << " " << r - diff << " " << r << "\n";
          }
          flag = 0;
          break;
          end = mid - 1;
        } else if (mid * i - m >= 0) {
          end = mid - 1;
        } else {
          start = mid + 1;
        }
      }
      if (flag == 0) break;
    }
  }
  return 0;
}
