#include <bits/stdc++.h>
const int MAX_N = 1e5 + 1;
const long long int MOD = 1e9 + 7;
const long long int INF = 1e9;
using namespace std;
void solve() {
  int t;
  cin >> t;
  while (t--) {
    long long int a, b, c, d;
    cin >> a >> b >> c >> d;
    cout << b << " " << c << " " << c << endl;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
}
