#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> N >> S; ll a=0,b=0; REP(i,N){ if(S[i]=='(') a++; else b++; } if(a!=b){ cout << "No" << endl; return 0; } cout << "Yes" << endl; return 0; }