#include using namespace std; using Int = long long; //INSERT ABOVE HERE Int calc(string s){ Int n=s.size(),res=0; for(Int i=0;i>s; reverse(s.begin(),s.end()); for(char &c:s) if(c=='(') c=')';else if(c==')') c='('; cout<