#include <bits/stdc++.h>
using namespace std;
void print(long long a, long long b, long long c) {
  cout << a << " " << b << " " << c << "\n";
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long l, r, m;
    cin >> l >> r >> m;
    long long d = r - l;
    long long flag = 0;
    for (long long a = l; a <= r && flag == 0; a++) {
      long long low = 1, high = (long long)1e12 + 1;
      while (low <= high) {
        long long mid = (low + high) / 2;
        if (abs(m - mid * a) <= d) {
          long long diff = m - (mid * a);
          if (diff == 0) {
            print(a, l, l);
          } else if (diff > 0) {
            print(a, r, r - diff);
          } else {
            print(a, r + diff, r);
          }
          flag = 1;
          break;
        }
        if (m < mid * a)
          high = mid - 1;
        else
          low = mid + 1;
      }
      if (flag == 1) break;
    }
  }
}
