import sys
import math
N = int(input())

for n in range(N):
    T = int(input())
    lis = [int(_) for _ in input().split()]
    if T <= 9:
        print(0, 0, 0)
        continue
    else:
        medals = [0] * 3
        i = 1
        lis_ind = 1
        tmp = 0
        medal = 0
        while i < -(-T // 2) - 1:
            if lis[i-1] == lis[i]:
                tmp += 1
            else:
                gold_medal = tmp + 1
                medals[0] = gold_medal
                tmp = 0
                i += 1
                break
            i += 1
        lim = -(-T // 2)
        while i <= lim:
            tmp += 1
            if lis[i-1] != lis[i] or i == lim:
                if tmp > gold_medal:
                    medals[lis_ind] = tmp
                    #print(i, n, lis_ind, tmp, "\n")
                    medal = tmp
                    tmp = 0
                    lis_ind += 1
                    if lis_ind == 3:
                        break
            i += 1
        if medals[1] <= medals[0] or medals[2] <= medals[0]:
            print(0, 0, 0)
        else:
            print(*medals)