Example

Input

1


Output

)(
#include<iostream>
#include<cstdio> 
#include<cstring>  
#include<cstdlib>
#include<algorithm> 
using namespace std;  
int main()  
{  
    int a; 
    cin>>a;
    int n=0;  
    int i=0;
    while(n*(n+1)/2<a)
    {n++;}
    int cnt=n*(n+1)/2-a;
    for(i=0;i<n-cnt;i++)  
    cout<<")";//yuan
    cout<<"(";//duiqijinxingxiugai
    for(i=n-cnt+1;i<=n;i++)  
    cout<<")";
    for(int i=n+1;i<n*2;i++)  
    cout<<"(";///yuan
cout<<endl;
    return 0;
} 