#include <bits/stdc++.h>
using namespace std;
const int INF = 0x7fffffff;
const int N = 1e6 + 7;
const int mod = 1e9 + 7;
long long a[N];
long long b[N];
bool san(long long a, long long b, long long c) {
  if (a + b > c)
    return false;
  else
    return true;
}
int main() {
  long long i, j, k;
  long long n, m, t;
  long long a, b, c, d;
  cin >> t;
  while (t--) {
    cin >> a >> b >> c >> d;
    cout << b << " " << c << " " << c << endl;
  }
}
