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