Example

Input

1


Output

)(
#include <bits/stdc++.h>
#define ll long long
/*#define INF 2147483647
#define mem_INF 2139062143
#define ll_INF 9223372036854775807
#define eps 1e-8
#define fuckrand() ( ( rand() << 15 ) ^ rand() )*/
using namespace std;
inline int read() {
	int x = 0,tmp = 1;char ch = getchar();
	while( ch < '0' || ch > '9' ) {if ( ch == '-' ) tmp = -1; ch = getchar();}
	while( ch >= '0' && ch <= '9'){x = x * 10 + ch - '0'; ch = getchar(); }
	return x * tmp;
}
inline ll readll() {
	ll x = 0,tmp = 1;char ch = getchar();
	while( ch < '0' || ch > '9' ) {if ( ch == '-' ) tmp = -1; ch = getchar();}
	while( ch >= '0' && ch <= '9'){x = x * 10 + ch - '0'; ch = getchar(); }
	return x * tmp;
}
int main() {
	int T = read(), N;
	for( int i = 1 ; ; ++ i )
		if( ( i * ( i + 1 ) >> 1 ) >= T ) {
			N = i; break;
		}
	int tot = N * ( N + 1 ) >> 1; 
	for( int i = 1 ; i <= N - tot + T ; ++ i ) putchar( ')' );
	putchar( '(' );
	for( int i = 1 ; i <= tot - T ; ++ i ) putchar( ')' );
	for( int i = 1 ; i < N ; ++ i ) putchar( '(' );
	putchar( '\n' );
	return 0; 
}