Example

Input

1


Output

)(
#include <iostream>
using namespace std;

int main(){
    int A;
    cin>>A;
    int len=1;
    while(len*(len+1)/2<A) len++;
    int diff=len*(len+1)/2-A;
    cout<<string(len-diff,')')<<'('<<string(diff,')')<<string(len-1,'(')<<endl;

    return 0;
}
