#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int maxn = 2e5 + 7;
int main() {
  int T;
  scanf("%d", &T);
  while (T--) {
    int a, b, c, d;
    scanf("%d%d%d%d", &a, &b, &c, &d);
    printf("%d %d %d\n", b, c, c);
  }
  return 0;
}
