#include <bits/stdc++.h>
using namespace std;
void fun(long long int a, long long int b, long long int c, long long int d) {
  long long int x = b, y = c, z = c;
  cout << x << " " << y << " " << z << endl;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long int a, b, c, d;
    cin >> a >> b >> c >> d;
    fun(a, b, c, d);
  }
  return 0;
}
