Example

Input

1


Output

)(
#include <iostream>  
#include <cstdio>  
#include <algorithm>  
using namespace std;

int n,a,tt;

long long read()
{
	long long x=0,f=1;char c=getchar();
	while (!isdigit(c)) {if (c=='-')f=-1;c=getchar();}
	while (isdigit(c)) {x=x*10+c-'0';c=getchar();}
	return x*f;
}

void write(long long x)
{
	if (x<0) putchar('-'),x=-x;if (x>=10) write(x/10);
	putchar(x%10+'0');
}

void writeln(long long x)
{
	 write(x),puts("");
}

int main()
{
	n=read();
	while (a*(a+1)/2<n)
		a++;
	tt=a*(a+1)/2-n;
	for (int i=0;i<a-tt;i++) putchar(')');
	putchar('(');
	for (int i=0;i<tt;i++) putchar(')');
	for (int i=0;i<a-1;i++) putchar('(');
	puts("");
	return 0;
}