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