#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    int x, y, z;
    z = c;
    x = b;
    y = c;
    cout << x << " " << y << " " << z << '\n';
  }
  return 0;
}
