#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
using namespace std;
char a[1000];
int main()
{
gets(a);
int i=0,top=0;
while(a[i]!='@')
{
if(a[i]=='(')
top++;
if(a[i]==')')
top--;
i++;
}
if(top==0)
cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
1353
猜你喜欢
转载自blog.csdn.net/qq_42552468/article/details/82560879
今日推荐
周排行