#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const long long inf = 1e18;
const double pi = 3.141592653589793;
void solve() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  cout << b << " " << c << " " << c << '\n';
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
