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