for _ in range(int(input())):
    n = int(input())
    arr = list(map(int, input().split()))
    g = 1
    while g < n and arr[g] == arr[g-1]:
        g += 1
    s = g+1
    while s+g < n and arr[g+s-1] == arr[g+s]:
        s += 1
    index = n//2
    while index > 0 and arr[index] == arr[index-1]:
        index -= 1
    b = index-s-g
    if b > g:
        print(g, s, b)
    else:
        print(0, 0, 0)
#from SMMaster