t=int(inout()) for _ in range(t): s = list(input().split()) s[2]=str(int(s[2])+1) print(*s)