func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int j, i, t, e, n;     cin >> t;     while (t--) {       cin >> n;       string s;       cin >> s;       string a, b;       a = s;       b = s;       bool f = 0;       a[0] =  1 ;       b[0] =  1 ;       i = 1;       while (s[i] !=  1  && i < n) {         if (s[i] ==  0 ) {           a[i] =  0 ;           b[i] =  0 ;         } else {           a[i] =  1 ;           b[i] =  1 ;         }         i++;       }       if (s[i] ==  1 ) {         a[i] =  1 ;         b[i] =  0 ;       }       i++;       while (i < n) {         if (s[i] ==  0 ) {           a[i] =  0 ;           b[i] =  0 ;         } else if (s[i] ==  2 ) {           a[i] =  0 ;           b[i] =  2 ;         } else {           b[i] =  1 ;           a[i] =  0 ;         }         i++;       }       cout << a << endl << b << endl;     }   }   