#include <bits/stdc++.h>
using namespace std;

int main (){
    int N;
    cin >> N;
    bool begin, end, bn, en;
    string a;
    int x;
    for(int i =0; i <  N; i ++){
        cin >> a;
        x = a.size();
        if(a.at(0) == '('){
            begin = 1;
        }
        if(a.at(x-1) == ')'){
            end = 1;
        }
        for(int j = 0; j < x;j++){
            if(a.at(j) == '('){
                bn++;
            }
            if(a.at(j) == ')'){
                en++;
            }
        }      
        
            }
    bool result = 1
    ;
            if(bn != en){
                result = 0;
            }
    if(begin){

    }
    else{
        result = 0;
    }

    if(end){

    }
    else{
        
        result = 0;
    }
    if(result){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}
