#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, d, t;
  cin >> t;
  while (t--) {
    cin >> a >> b >> c >> d;
    cout << b << " " << c << " " << c << endl;
  }
  return 0;
}
