Example

Input

1


Output

)(
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int n,K,A;
int main(){
	scanf("%d",&A);
	n=1;
	while((1+n)*n/2<A)n++;
	K=1;
	while((1+K)*K/2<=A)K++;
	K--;int S=(K+1)*K/2;
	for(int i=1;i<=n-K-1;i++)printf("(");
	for(int i=1;i<=n;i++){
		printf(")");
		if (i==A-S) printf("(");
	}
	for (int i=1;i<=K;i++) printf("(");
	printf("\n");
	return 0;
}