#include <bits/stdc++.h>
using namespace std;
inline int add(int _a, int _b) {
  if (_a < 0) {
    _a += 1000000007;
  }
  if (_b < 0) {
    _b += 1000000007;
  }
  if (_a + _b >= 1000000007) {
    return _a + _b - 1000000007;
  }
  return _a + _b;
}
inline int mul(int _a, int _b) {
  if (_a < 0) {
    _a += 1000000007;
  }
  if (_b < 0) {
    _b += 1000000007;
  }
  return ((long long int)((long long int)_a * (long long int)_b)) % 1000000007;
}
int a, b, c, d;
void solve() {
  int i, j;
  printf("%d %d %d", a, c, c);
  puts("");
}
int main() {
  int cs, ts;
  scanf("%d", &ts);
  for (cs = 0; cs < ts; cs++) {
    scanf("%d %d %d", &a, &b, &c), scanf("%d", &d);
    solve();
  }
}
