output_description: If a bracket sequence can be formed by concatenating all the N strings in some
  order, print `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
      S_1
      :
      S_N
attempt: print("Yes")
  
problem_description: Statement
  
  A **bracket sequence** is a string that is one of the following:
  
    1. An empty string;
    2. The concatenation of `(`, A, and `)` in this order, for some bracket sequence A ;
    3. The concatenation of A and B in this order, for some non-empty bracket sequences A and B /
  
  Given are N strings S_i. Can a bracket sequence be formed by concatenating all
  the N strings in some order?
samples: [{"input": "2\n    )\n    (()", "output": "Yes\n    \n\nConcatenating `(()` and `)` in this order forms a bracket sequence.\n\n* * *"}, {"input": "2\n    )(\n    ()", "output": "No\n    \n\n* * *"}, {"input": "4\n    ((()))\n    ((((((\n    ))))))\n    ()()()", "output": "Yes\n    \n\n* * *"}, {"input": "3\n    (((\n    )\n    )", "output": "No"}]