T = int(input()) for case in range(T): ABC = sorted(list(map(int, input().split()))) A = ABC[0] while ABC[0] + ABC[1] <= ABC[2]: ABC[0] += A print(*ABC)