func_code_string: #include <bits/stdc++.h>   using namespace std;   const int MOD = 1e9 + 7;   const long long int INF = 1e12;   long long int mod(long long int a) {     if (a >= 0)       return a;     else       return (-1 * a);   }   void swap(long long int a, long long int b) {     long long int temp = a;     a = b;     b = temp;   }   long long int power(long long int a, long long int b) {     long long int result = 1;     while (b) {       if (b % 2) result = (result % MOD) * (a % MOD);       a = ((a % MOD) * (a % MOD)) % MOD;       b = b / 2;     }     return result;   }   bool power_check(long long int a) {     bool ans = true;     while (a > 1) {       if (a % 2 == 0) {         a = a / 2;       } else {         ans = false;         break;       }     }     return ans;   }   void solve() {     int n;     cin >> n;     string s;     cin >> s;     int c = 0;     for (int i = 0; i < n; ++i) {       if (s[i] ==  0 ) c++;     }     if (c != n - c) {       cout << 1 <<   n ;       cout << s <<   n ;       return;     }     cout << 2 <<   n ;     cout << s[0] <<    ;     for (int i = 1; i < n; ++i) {       cout << s[i];     }     cout <<   n ;     return;   }   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     cout.tie(NULL);     int qqq;     qqq = 1;     while (qqq--) {       solve();     }     return 0;   }   