
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class BeautifulRegionalContest {
	static class FastReader 
	{ 
		BufferedReader br; 
		StringTokenizer st; 

		public FastReader() 
		{ 
			br = new BufferedReader(new
					InputStreamReader(System.in)); 
		} 

		String next() 
		{ 
			while (st == null || !st.hasMoreElements()) 
			{ 
				try
				{ 
					st = new StringTokenizer(br.readLine()); 
				} 
				catch (IOException e) 
				{ 
					e.printStackTrace(); 
				} 
			} 
			return st.nextToken(); 
		} 

		int nextInt() 
		{ 
			return Integer.parseInt(next()); 
		} 

		long nextLong() 
		{ 
			return Long.parseLong(next()); 
		} 

		double nextDouble() 
		{ 
			return Double.parseDouble(next()); 
		} 

		String nextLine() 
		{ 
			String str = ""; 
			try
			{ 
				str = br.readLine(); 
			} 
			catch (IOException e) 
			{ 
				e.printStackTrace(); 
			} 
			return str; 
		} 
	} 

	public static void main(String[] args) {
		FastReader f=new FastReader();
		int t=f.nextInt();
		while(t-->0) {
			int n=f.nextInt();
			int arr[]=new int[n];
			for(int i=0;i<n;i++) {
				arr[i]=f.nextInt();
			}
			comb(n,arr);
			
		}

	}
	
	static void comb(int n,int arr[]) {
		if((n/2)<3) {
			System.out.print(0+" "+0+" "+0);
			System.out.println();
			return;
		}else {
			int index=(n/2)-1;
			int l=0;
			int r=index;
			int size=r;
			if(arr[index]==arr[index+1]) {
				while(arr[index]==arr[index+1]) {
					index--;
					r=index;
					if(index<=0) {
						System.out.print(0+" "+0+" "+0);
						System.out.println();
						return;
					}
				}
			}
			
			//gold
			int g=1;
			int s=0;
			int b=0;
			int total=index-l;
			int i=0;
			for(i=l+1;i<=index;i++) {
				if(arr[i]!=arr[i-1]) {
					break;
				}else {
					g++;
					total--;
				}
			}
			
			s=s+g+1;
			total=total-s;
			i=i+s;
			if(i>=size) {
				System.out.print(0+" "+0+" "+0);
				System.out.println();
				return;
			}
			int q=i;
			for(q=i;q<=index;q++) {
				if(arr[q]!=arr[q-1]) {
					break;
				}else {
					s++;
					total--;
				}
			}
			
			if(total<1) {
				System.out.print(0+" "+0+" "+0);
				System.out.println();
				return;
			}
			b=total;
			if(b>=g) {
				System.out.print(0+" "+0+" "+0);
				System.out.println();
				return;
			}
			System.out.print(g+" "+s+" "+b);
			System.out.println();
			return;
		}
	}

}
