import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.StringTokenizer;
public class realfast implements Runnable {
    private static final int INF = (int) 1e9;
    
    public  void solve() throws IOException 
    {
       
      int t = readInt();
      for(int f =0;f<t;f++)
      {
        int n = readInt();

        int arr[]= new int [n+1];
        for(int i=1;i<=n;i++)
        {
          arr[i]=readInt();
        }

        int next[]= new int[n+1];
        next[n]=n+1;
        for(int i=n-1;i>=1;i--)
        {
            if(arr[i]!=arr[i+1])
                next[i]=i+1;
            else
                next[i]= next[i+1];
        }
        int g =0;
        int s =0;
        int b =0;
        boolean check = true;
        g= next[1]-1;
        if(g>=n/2)
        {
          out.println(0+" "+0+" "+0);
        }
        else
        {
           if(g+g+1>=n/2||next[g+g+1]-1>=n/2)
           {
              out.println(0+" "+0+" "+0);
           }
           else
           {   
                int pos =next[2*g+1]-1;
                 s= next[g+g+1]-g-1;
                if(pos+g+1>n/2||next[pos+g+1]-1>n/2)
                    out.println(0+" "+0+" "+0);
                else
                {
                   b = 0;
                  for(int j=pos+g+1;j<=n/2;j++)
                  {
                    if(next[j]-1<=n/2)
                    {
                      b=  next[j]-1-pos;
                    }
                  }
                  out.println(g+" "+s+" "+b);
                }

           }

        }
        



      }
    }
   
    
    
    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    public static void main(String[] args) {
        new Thread(null, new realfast(), "", 128 * (1L << 20)).start();
    }
 
    private static final boolean ONLINE_JUDGE = System.getProperty("ONLINE_JUDGE") != null;
    private BufferedReader reader;
    private StringTokenizer tokenizer;
    private PrintWriter out;
 
    @Override
    public void run() {
        try {
            if (ONLINE_JUDGE || !new File("input.txt").exists()) {
                reader = new BufferedReader(new InputStreamReader(System.in));
                out = new PrintWriter(System.out);
            } else {
                reader = new BufferedReader(new FileReader("input.txt"));
                out = new PrintWriter("output.txt");
            }
            solve();
        } catch (IOException e) {
            throw new RuntimeException(e);
        } finally {
            try {
                reader.close();
            } catch (IOException e) {
                // nothing
            }
            out.close();
        }
    }
 
    private String readString() throws IOException {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(reader.readLine());
        }
        return tokenizer.nextToken();
    }
 
    @SuppressWarnings("unused")
    private int readInt() throws IOException {
        return Integer.parseInt(readString());
    }
 
    @SuppressWarnings("unused")
    private long readLong() throws IOException {
        return Long.parseLong(readString());
    }
 
    @SuppressWarnings("unused")
    private double readDouble() throws IOException {
        return Double.parseDouble(readString());
    }
}
class edge implements Comparable<edge>{
    int u ;
    int v ;
    int val;
    edge(int u1, int v1 , int val1)
    {
       this.u=u1;
       this.v=v1;
       this.val=val1;
    }
    public int compareTo(edge e)
    {
        return this.val-e.val;
    }
}