Example

Input

1


Output

)(
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cstdlib>
#define maxx 2000000000
using namespace std;
int a,tot,k;
int main(){
	scanf("%d",&a);
	while (k*(k+1)/2<=a)
		k++;
	if (k*(k+1)/2>a)
		k--;
	for (int i=1;i<=k;i++){
		if ((a-k*(k+1)/2)==i){
			printf(")(");
		}		
		printf(")");
	}
	for (int i=1;i<=k;i++)
		printf("(");
	printf("\n");
	return 0;
} 