#include <bits/stdc++.h>
using namespace std;
int main() {
  int test;
  cin >> test;
  while (test--) {
    long long int a, b, c, d;
    cin >> a >> b >> c >> d;
    cout << a << "\n" << c << "\n" << c << "\n";
  }
}
