func_code_string: #include <bits/stdc++.h>   using namespace std;   long long MOD = 1e9 + 7;   long long add(long long a, long long b) {     a += b;     if (a >= MOD) a -= MOD;     if (a < 0) a += MOD;     return a;   }   long long mul(long long a, long long b) { return a * 1ll * b % MOD; }   void solve() {     long long n;     string s;     cin >> n >> s;     string ans = string(n,  0 );     long long bal = 0;     for (long long i = 0; i < n; i++) {       if (s[i] ==  ) ) bal--;       ans[i] = char( 0  + (bal & 1));       if (s[i] ==  ( ) bal++;     }     cout << ans << endl;   }   int32_t main() {     ios::sync_with_stdio(false);     cin.tie(0);     cout.tie(0);     long long t = 1;     while (t--) solve();     return 0;   }   