T = int(input()) for _ in range(T): x = input().split() x[2] = str(int(x[2])+1) print(' '.join(x))