#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  srand(time(NULL));
  int T = 1;
  cin >> T;
  while (T--) {
    long long a, b, c, d;
    cin >> a >> b >> c >> d;
    long long x = b, y = c, z = c;
    cout << x << " " << y << " " << z << " "
         << "\n";
  }
  return 0;
}
