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