T = int(input()) while T: S = input().split() S[2] = str(int(S[2]) + 1) print(*S) T -= 1