Example

Input

1


Output

)(
#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
	cin >> n;
	int m = ceil(0.5 * sqrt(8.0 * n + 1) - 0.5), q = m * (m + 1) / 2 - n;
	string s = string(m - q, ')') + "(" + string(q, ')') + string(m - 1, '(');
	cout << s << endl;
	return 0;
}