func_code_string: #include <bits/stdc++.h>   using namespace std;   const int inf = 1000000000 + 7;   const int N = 1000006;   int n, a[305], ar[6], s, aa, bb, cc, mn = inf, x, t;   int main() {     cin >> n >> s;     for (int i = 1; i <= n; i++) {       scanf( %d , &x);       ar[x]++;     }     for (int i = s / n; i >= 0; i--) {       for (int j = (s - i * ar[3]) / (ar[4] + ar[5]); j >= i; j--) {         t = (s - i * ar[3] - j * ar[4]) / ar[5];         if (t * ar[5] - j * ar[4] >= mn) break;         if (i * ar[3] + j * ar[4] + t * ar[5] == s && j <= t) {           if (mn > abs(i * ar[3] - j * ar[4]) + abs(j * ar[4] - t * ar[5])) {             aa = i;             bb = j;             cc = t;             mn = abs(i * ar[3] - j * ar[4]) + abs(j * ar[4] - t * ar[5]);           }         }       }     }     if (mn == inf)       cout << -1 << endl;     else       cout << aa <<     << bb <<     << cc << endl;   }   