#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int x = 0, y = 0, z = 0;
    int ar[4];
    for (int i = 0; i < 4; i++) {
      cin >> ar[i];
    }
    x = ar[1];
    y = ar[2];
    z = ar[2];
    cout << x << " " << y << " " << z << endl;
  }
  return 0;
}
