func_code_string: #include <bits/stdc++.h>   using namespace std;   int n;   int cnt[3], seen[3];   string s;   int main() {     ios::sync_with_stdio(0);     cin >> n >> s;     int m = n / 3;     for (int i = 0; i < n; i++) {       cnt[s[i] -  0 ]++;     }     for (int i = 0; i < n; i++) {       if (cnt[s[i] -  0 ] > m) {         for (long long j = 0; j < 3; j++) {           if (cnt[j] < m) {             if (j > s[i] -  0  && seen[s[i] -  0 ] < m) break;             cnt[j]++;             cnt[s[i] -  0 ]--;             s[i] = j +  0 ;           }         }       }       seen[s[i] -  0 ]++;     }     cout << s << endl;     return 0;   }   