
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main{
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String[] cmd=br.readLine().split(" ");
		int cases=Integer.valueOf(cmd[0]);
		while(cases!=0)
		{
			cases--;
			int n=Integer.valueOf(br.readLine());
			int[] scores=new int[n];
			cmd=br.readLine().split(" ");
			for(int i=0;i<n;i++)
			{
				scores[i]=Integer.valueOf(cmd[i]);
			}
			int medals=n/2;
			int g=0;
			int s=0;
			int b=0;
			int bool=0;
			int x=scores[0];
			g++;
			int ind=0;
			for(int i=1;i<n;i++)
			{
				if(scores[i]==x)
				{
					g++;
					ind=i;
				}
				else
					break;
				if(g>medals)
				{
					bool=1;
					break;
				}
			}
			if(bool==1)
				System.out.println(0+" "+0+" "+0);
			else
			{
				for(int i=0;i<=g;i++)
				{
					s++;
					ind++;
					if(g+s>medals)
					{
						bool=1;
						break;
					}
				}
				if(bool==1)
					System.out.println(0+" "+0+" "+0);
				else
				{
					x=scores[ind];
					for(int i=ind+1;i<n;i++)
					{
						if(scores[i]==x)
						{
							s++;
							ind=i;
						}
						else
							break;
						if(g+s>medals)
						{
							bool=1;
							break;
						}
					}
					if(bool==1)
						System.out.println(0+" "+0+" "+0);
					else
					{
						for(int i=0;i<=g;i++)
						{
							b++;
							ind++;
							if(g+s+b>medals)
							{
								bool=1;
								break;
							}
						}
						if(bool==1)
							System.out.println(0+" "+0+" "+0);
						else
						{
							x=scores[ind];
							for(int i=ind+1;i<n;i++)
							{
								if(scores[i]==x)
								{
									b++;
									ind=i;
								}
								else
									break;
								if(g+s+b>medals)
								{
									bool=1;
									break;
								}
							}
							if(bool==1)
								System.out.println(0+" "+0+" "+0);
							else
							{
								int left=medals-(g+b+s);
								int tot=0;
								int cnt=1;
								x=scores[ind+1];
								for(int i=ind+2;i<n;i++)
								{
									if(scores[i]==x)
										cnt++;
									else
									{
										if(tot+cnt>left)
											break;
										tot=tot+cnt;
										b=b+cnt;
										cnt=1;
										x=scores[i];
									}
								}
								System.out.println(g+" "+s+" "+b);
							}
						}
					}
				}
			}
		}
	}

}
