有的数据点不通过
#include<cstdio>
#include<stack>
using namespace std;
stack<char>sta;
int main(){
bool flag=false;
char ch;
while((ch=getchar())!='@'){
if(ch=='('){
sta.push('(');
}
if(ch==')'){
if(sta.top()!='(') flag=true;
else sta.pop();
}
}
if(!sta.empty()||flag){
printf("NO");
}
else printf("YES");
}