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