import sys def input(): return sys.stdin.readline()[:-1] ans = [] for _ in range(int(input())): a = list(map(int, input().split())) a.sort() print(a[0]*(a[2]//a[0]), a[1]*(a[2]//a[1]), a[2])