T = int(input()) for _ in range(N): A, B, C = map(int, input().split()) a = sorted([A, B, C]) print(A, B, C * (A + B) // C + 1)