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