import java.io.*;
import java.util.*;
import java.lang.*;
import java.awt.*;
import java.awt.geom.*;
import java.math.*;
import java.text.*;
import java.math.BigInteger.*;
import java.util.Arrays; 

public class   unwashme
{
  BufferedReader in;
  StringTokenizer as;
  int nums[];
  int l,r;
  boolean nums2[];

  public static void main (String[] args)
  {
    new unwashme  ();
  }
  
  
  
  
  public unwashme  ()
  {
    try
    {
      
      in = new BufferedReader (new InputStreamReader (System.in));
      int aa = nextInt();
      for(int z = 0;z<aa;z++)
      {
        int a = nextInt();
        nums = new int [a];
        int pointer1 = 0;
        int pointer2 = 0;
        int pointer3 = 0;
        for(int x = 0;x<a;x++)
        {
          
          nums[x] = nextInt();
          if(x != 0)
          {
            if(nums[x] != nums[x-1])
            {
              if(pointer1 == 0)
                pointer1 = x;
              else if(pointer2 == 0 && pointer1 < x - pointer1)
                pointer2 = x;
              else if(pointer2 != 0 && x <= a/2 && x - pointer2 > pointer1)
                pointer3 = x; 
            }
          }
        }
        if(pointer3 == 0)
          System.out.println("0 0 0");
        else
        {
          System.out.println(pointer1 + " " + (pointer2-pointer1) + " " + (pointer3-pointer2));
        }
       
      }


    }
    
    
    
    catch(IOException e)
    {
      
    }
  }
  
  
  
  
  
  
  
  String next () throws IOException
  {
    while (as == null || !as.hasMoreTokens ())
    {
      as = new StringTokenizer (in.readLine ().trim ());
    }
    
    
    return as.nextToken ();
  }
  
  
  
  long nextLong () throws IOException
  {
    return Long.parseLong (next ());
  }
  
  
  int nextInt () throws IOException
  {
    return Integer.parseInt (next ());
  }
  
  
  double nextDouble () throws IOException
  {
    return Double.parseDouble (next ());
  }
  
  
  String nextLine () throws IOException
  {
    return in.readLine ().trim ();
  }
}