#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int T;
  cin >> T;
  for (int tc = 0; tc < (T); tc++) {
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    cout << b << " " << c << " " << c;
    cout << "\n";
  }
  return 0;
}
