#include <bits/stdc++.h>
using namespace std;
bool checkValidity(int a, int b, int c) {
  if (a + b <= c || a + c <= b || b + c <= a)
    return false;
  else
    return true;
}
void ft(int a, int b, int c, int d) {
  if (checkValidity(b, c, c))
    cout << b << " " << c << " " << c << endl;
  else
    while (b < c) ft(a, b + 1, c, d);
}
int main() {
  int t;
  int a, b, c, d;
  cin >> t;
  for (int i = 0; i < t; i++) {
    cin >> a >> b >> c >> d;
    ft(a, b, c, d);
  }
}
