func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     if (n % 2 == 1) {       string input;       cin >> input;       cout <<  No  << endl;       return 0;     }     stack<char> parenthesis;     char input;     bool flag = true;     cin >> input;     parenthesis.push(input);     for (int i = 1; i < n; i++) {       cin >> input;       if (parenthesis.empty())         parenthesis.push(input);       else if (parenthesis.top() ==  (  && input ==  ) ) {         parenthesis.pop();       } else {         parenthesis.push(input);       }     }     if (parenthesis.empty())       cout <<  Yes  << endl;     else if (parenthesis.size() > 2)       cout <<  No  << endl;     else {       input = parenthesis.top();       parenthesis.pop();       if (parenthesis.top() ==  )  && input ==  ( )         cout <<  Yes  << endl;       else         cout <<  No  << endl;     }   }   