Example

Input

1


Output

)(
#include <bits/stdc++.h>
#define endl "\n"
using namespace std;
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
template<class T>
inline bool chmax(T &a, T b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}

template<class T>
inline bool chmin(T &a, T b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}

const long long INF = 1e18;
//const ll mod = 1000000007;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    ll A;
    cin >> A;
    for(ll N = 1; ; N++) {
        if(N * (N + 1) / 2 < A) continue;
        string S;
        ll l = N;
        ll r = N;
        for(ll i = 0; i < 2 * N; i++) {
            ll num = (l - 1) * l / 2;
            if(r < l) {
                ll d = (l - r - 1);
                num -= d * (d + 1) / 2;
            }
            //cerr << l << " " << r << " " << num << " " << A << endl;
            if(num < A) {
                S.push_back(')');
                r--;
                A -= max(0LL, l - r);
            } else {
                S.push_back('(');
                l--;
            }
        }
        cout << S << endl;
        return 0;
    }
    return 0;
}

