Example

Input

1


Output

)(
#include <bits/stdc++.h>

using namespace std;

#define int long long
#define all(v) begin(v), end(v)
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define reps(i, s, n) for(int i = (int)(s); i < (int)(n); i++)

const int inf = 1LL << 55;
const int mod = 1e9 + 7;

signed main()
{
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cout << fixed << setprecision(12);

  int A; cin >> A;
  int n = 1;
  while(n*(n+1) / 2 < A) n++;
  string ans = "";
  rep(i, n) ans += ")";
  rep(i, n) ans += "(";
  swap(ans[n], ans[n - n*(n+1)/2 + A]);
  cout << ans << endl;

  return 0;
}