func_code_string: #include <bits/stdc++.h>   using namespace std;   const int MAXN = 2010;   int n, m, l, r, k, a[MAXN], b[MAXN];   int main() {     ios::sync_with_stdio(0);     cin >> n >> m;     for (int i = 1; i <= n; ++i) {       cin >> a[i];       if (a[i] <= m) {         b[a[i]]++;       }     }     r = n / m;     l = 1;     for (int i = 1; i <= n; ++i) {       while (l <= m && b[l] >= r) {         l++;       }       if (l > m) {         break;       }       if (a[i] > m || b[a[i]] > r) {         if (a[i] <= m) {           b[a[i]]--;         }         a[i] = l;         b[l]++;         k++;       }     }     cout << r <<     << k <<   n ;     for (int i = 1; i <= n; ++i) {       cout << a[i] <<    ;     }   }   