<gh_stars>0
for i in range(int(input())):
    a, b, c, d = map(int, input().split())
    print(f'{b} {c} {c}')

for i in range(int(input())):
    a, b, c, d = map(int, input().split())
    print(f'{b} {c} {c}')