for i in range(input()):
    n = input()
    a = map(int, raw_input().split())
    if n <= 6:
        print 0, 0, 0
    else:
        half = n / 2
        k = 1
        while k < half and a[k] == a[k - 1]:
            k += 1
        g = k - 1

        k = half - 1
        while k and a[k] == a[k + 1]:
            k -= 1
        b = k
        if a[g] == a[b]:
            print 0, 0, 0
            continue
        k = b - g - 1
        while k and a[k] == a[k + 1]:
            k -= 1
        s = k
        if g + 1 < s - g:
            print g + 1, s - g, b - s
        else:
            print 0, 0, 0
