/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
//package comp.programming;

/**
 *
 * @author LUCIANO
 */
import java.util.*;

public class Solution {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner in = new Scanner(System.in);
        int t = in.nextInt();
        for (int tt = 0; tt < t; tt++) {
            int n = in.nextInt();
            int[] diff = new int[n];
            int prev = in.nextInt();
            diff[0] = 1;
            for (int i = 1; i < n; i++) {
                int cur = in.nextInt();
                diff[i] = diff[i - 1];
                if (prev != cur) {
                    diff[i] += 1;
                }
                prev = cur;
            }
            int x = 0;
            int y = 0;
            int z = 0;
            if (diff[n / 2] >= 4) {
                int exclude = diff[n / 2];
                int last = (n / 2) - 1;
                while (diff[last] == exclude) {
                    last -= 1;
                }
                for (int i = 0; i <= last; i++) {
                    if (diff[i] == 1) {
                        x += 1;
                    } else if (diff[i] == 2) {
                        y += 1;
                    } else {
                        z += 1;
                    }
                }
            }
            System.out.println(x + " " + y + " " + z);
        }
    }
}
