def solution(s):
	if len(s)%2==1:
		return "NO"
	if s[0]==')' or s[-1]=='(':
		return "NO"
	return "YES"

	
t = int(input())

for i in range(t):
	s = input()
	print(solution(s))
	
	
9755e14c40f4bc91a9cfda17c449910884f69774
<mask token>

def solution(s):
    if len(s) % 2 == 1:
        return 'NO'
    if s[0] == ')' or s[-1] == '(':
        return 'NO'
    return 'YES'


<mask token>

def solution(s):
    if len(s) % 2 == 1:
        return 'NO'
    if s[0] == ')' or s[-1] == '(':
        return 'NO'
    return 'YES'


<mask token>
for i in range(t):
    s = input()
    print(solution(s))

def solution(s):
    if len(s) % 2 == 1:
        return 'NO'
    if s[0] == ')' or s[-1] == '(':
        return 'NO'
    return 'YES'


t = int(input())
for i in range(t):
    s = input()
    print(solution(s))

def solution(s):
	if len(s)%2==1:
		return "NO"
	if s[0]==')' or s[-1]=='(':
		return "NO"
	return "YES"

	
t = int(input())

for i in range(t):
	s = input()
	print(solution(s))
	
	