T=int(input()) for _ in range(T): S=input().split() S[2]=int(S[2])+1 print(*S)