#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define ll long long int
#define mod 998244353

ll n,m;
ll lsum=0,rsum=0;
ll rok=0,lok=0;
char s[1000001];

int main(){

  scanf("%lld",&n);
  for(int i=1;i<=n;i++){
    scanf("%s",s);
    int rtmp=0,ltmp=0;
    int slen = strlen(s);
    for(int j=0;j<slen;j++){
      if(s[j]=='(')ltmp++;
      else{
	if(ltmp>0) ltmp--;
	else rtmp++;}}
    if(ltmp==0 && rtmp>0) rok=1;
    if(ltmp>0 && rtmp==0) lok=1;
    lsum+=ltmp;
    rsum+=rtmp;}

  if(lsum==rsum && rok && lok){
    printf("Yes\n");}
  else{
    printf("No\n");}
  

  
  return 0;
}
