#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long a, b, c, d;
  scanf("%lld %lld %lld %lld", &a, &b, &c, &d);
  printf("%lld %lld %lld\n", b, c, c);
}
int main() {
  int t;
  scanf("%d", &t);
  while (t--) solve();
}
