#include <bits/stdc++.h>
using namespace std;
int main() {
  int cases;
  cin >> cases;
  for (int i = 0; i < cases; i++) {
    int a, b, c, d;
    int x, y, z;
    cin >> a >> b >> c >> d;
    x = b;
    y = c;
    z = c;
    cout << x << ' ' << y << ' ' << z << endl;
  }
}
