#include <iostream>
#include <string>
int main() {
	std::ios::sync_with_stdio(0);
	std::cin.tie(0);
	std::cout.tie(0);
	int t;
	for (std::cin >> t; t--;) {
		std::string s;
		std::cin >> s;
		int leftIdx = s.find('(');
		int rightIdx = s.find(')');
		int size = s.size();
		if (size % 2 == 0 && rightIdx != 0 && leftIdx != size - 1) std::cout << "YES\n";
		else std::cout << "NO\n";
	}
	return 0;
}