#include <bits/stdc++.h>
using namespace std;
int T;
long long l, r, m;
int main() {
  scanf("%d", &T);
  while (T--) {
    scanf("%lld%lld%lld", &l, &r, &m);
    long long d = (r - l);
    for (int a = l; a <= r; ++a) {
      long long n = m / a;
      if (n && m - n * a <= d) {
        printf("%d %lld %lld\n", a, l + (m - n * a), l);
        break;
      }
      n++;
      if (n && n * a - m <= d) {
        printf("%d %lld %lld\n", a, l, l + (n * a - m));
        break;
      }
    }
  }
  return 0;
}
