#include <bits/stdc++.h>

using namespace std;

int main(){
    cout << "(" << endl;
cout << ")" << endl;
cout << "Ne postoji" << endl;
cout << "(()" << endl;
cout << "()))" << endl;
cout << "((()()))" << endl;
}