def practice(n, arr):
    
    count = 0
    for i in range(0,n):
        track = i
        lst = []
        while(track != n):
            sum = 0
            lst.append(arr[track])
            print(lst)
            for num in lst:
                sum += num
                if sum == 0:
                    break
            if(sum != 0):
                count += 1
            track += 1
    
    return count