#include<bits/stdc++.h>
using namespace std;
int main()
{
    int t,n,sm,k;
    cin>>t;
    while(t--){set<int>s;map<int,int>mp;sm=0;
        cin>>n;int a[n]={0};
        for(int i=0;i<n;i++){
            cin>>k;s.insert(k);
            mp[k]++;
        }int k=0;
        for(auto it=s.rbegin();it!=s.rend();it++){
            if(sm+mp[*it]>n/2){break;}
            else{a[k++]=mp[*it];sm+=mp[*it];}
        }
        int g=a[0],b,sl;if((sm-a[0])%2){b=(sm-a[0])/2;sl=b+1;}else{b=sl=(sm-a[0])/2;}
        if((k==2)||(g>=b)){cout<<-1<<'\n';}
        else{cout<<g<<" "<<sl<<" "<<b<<'\n';}

    }
}

