#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, n, t;
  int a1, b1, c1, d1;
  cin >> t;
  while (t--) {
    cin >> a1 >> b1 >> c1 >> d1;
    cout << b1 << " " << c1 << " " << c1 << "\n";
  }
  return 0;
}
