func_code_string: #include <bits/stdc++.h>   using namespace std;   const long long int N = 100005;   bool powertwo(long long int n) { return (n and !(n & (n - 1))); }   int32_t main() {     ios::sync_with_stdio(0);     cin.tie(0);     cout.tie(0);     long long int t;     cin >> t;     while (t--) {       long long int n;       cin >> n;       long long int arr[n];       map<long long int, long long int> mp;       for (long long int i = 0; i < n; i++) {         cin >> arr[i];         mp[arr[i]]++;       }       long long int g = 0, s = 0, b = 0;       vector<long long int> v;       for (auto it = mp.rbegin(); it != mp.rend(); it++) v.push_back(it->second);       g = v[0];       long long int i = 1;       while (s <= g and i < v.size()) {         s += v[i];         i++;       }       while (b <= g and i < v.size()) {         b += v[i];         i++;       }       while ((g + s + b + v[i]) <= n / 2 and i < v.size()) {         b += v[i];         i++;       }       if ((g + s + b) > n / 2 or s < g or b < g)         cout <<  0 0 0 n ;       else if (g == 0 or s == 0 or b == 0)         cout <<  0 0 0 n ;       else         cout << g <<     << s <<     << b <<   n ;     }     return 0;   }   