func_code_string: #include <bits/stdc++.h>   using namespace std;   int a[100100] = {}, b[100100] = {}, c[100100] = {};   int main() {     int n, x, y;     cin >> n >> x >> y;     for (int i = 1; i <= n; i++) {       scanf( %d , &a[i]);       b[i] = a[i];     }     sort(a + 1, a + n + 1);     if (x < y) {       int t = x, z = a[y + 1];       for (int i = 1; i <= n; i++) {         if (b[i] > z) {           c[i] = 1;           t--;         } else           c[i] = 2;       }       for (int i = 1; i <= n; i++) {         if (b[i] == z && t > 0) {           c[i] = 1;           t--;         }       }     }     if (x > y) {       int t = x, z = a[x];       for (int i = 1; i <= n; i++) {         if (b[i] < z) {           c[i] = 1;           t--;         } else           c[i] = 2;       }       for (int i = 1; i <= n; i++) {         if (b[i] == z && t > 0) {           c[i] = 1;           t--;         }       }     }     if (x == y) {       for (int i = 1; i <= x; i++) c[i] = 1;       for (int i = 1; i <= x; i++) c[i + x] = 2;     }     for (int i = 1; i < n; i++) cout << c[i] <<    ;     cout << c[n] << endl;   }   