T = int(input()) for case in range(T): A, B, C = map(int, input().split()) O = [A, B, C] X = [A, B, C] if sum(X) <= 2 * max(X): i = X.index(min(X)) X[i] += (2 * max(X) - sum(X) + O[i] - 1) // O[i] print(*X)