#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 50;
const int inf = 1e9;
const int mod = 1e9 + 7;
int main() {
  ios::sync_with_stdio(false), cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    int l = b, r = c;
    int mid = (l + r) >> 1;
    while (l <= r) {
      mid = (l + r) >> 1;
      if (mid + b > c) {
        break;
      } else {
        l = mid + 1;
      }
    }
    cout << b << " " << mid << " " << c << endl;
  }
  return 0;
}
