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