#include <bits/stdc++.h>
using namespace std;
void testcase() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  cout << b << " " << c << " " << c << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    testcase();
  }
  return 0;
}
