Polycarpus has been working in the analytic department of the "F.R.A.U.D." company for as much as n days. Right now his task is to make a series of reports about the company's performance for the last n days. We know that the main information in a day report is value a_{i}, the company's profit on the i-th day. If a_{i} is negative, then the company suffered losses on the i-th day.

Polycarpus should sort the daily reports into folders. Each folder should include data on the company's performance for several consecutive days. Of course, the information on each of the n days should be exactly in one folder. Thus, Polycarpus puts information on the first few days in the first folder. The information on the several following days goes to the second folder, and so on.

It is known that the boss reads one daily report folder per day. If one folder has three or more reports for the days in which the company suffered losses (a_{i} < 0), he loses his temper and his wrath is terrible.

Therefore, Polycarpus wants to prepare the folders so that none of them contains information on three or more days with the loss, and the number of folders is minimal.

Write a program that, given sequence a_{i}, will print the minimum number of folders.


-----Input-----

The first line contains integer n (1 ≤ n ≤ 100), n is the number of days. The second line contains a sequence of integers a_1, a_2, ..., a_{n} (|a_{i}| ≤ 100), where a_{i} means the company profit on the i-th day. It is possible that the company has no days with the negative a_{i}.


-----Output-----

Print an integer k — the required minimum number of folders. In the second line print a sequence of integers b_1, b_2, ..., b_{k}, where b_{j} is the number of day reports in the j-th folder.

If there are multiple ways to sort the reports into k days, print any of them.


-----Examples-----
Input
11
1 2 3 -4 -5 -6 5 -5 -6 -7 6

Output
3
5 3 3 
Input
5
0 -1 100 -1 0

Output
1
5 


-----Note-----

Here goes a way to sort the reports from the first sample into three folders:  1 2 3 -4 -5 | -6 5 -5 | -6 -7 6 

In the second sample you can put all five reports in one folder.

Difficulty: interview

Starter code:

Solutions:
import re
import itertools
from collections import Counter

class Task:
    a = []
    answer = []
	
    def getData(self):
        input()
        self.a = [int(x) for x in input().split(" ")]
	
    def solve(self):
        currentFolderCounter = 0
        badDaysCounter = 0
        for x in self.a:
            if x >= 0:
                currentFolderCounter += 1
            elif badDaysCounter <= 1:
                currentFolderCounter += 1
                badDaysCounter += 1
            else:
                self.answer += [currentFolderCounter]
                currentFolderCounter = 1
                badDaysCounter = 1
        if currentFolderCounter > 0:
            self.answer += [currentFolderCounter]

    def printAnswer(self):
        print(len(self.answer))
        print(re.sub('[\[\],]', '', str(self.answer)))

task = Task();
task.getData();
task.solve();
task.printAnswer();


p, x, y, n, t = [], 0, 0, int(input()), list(map(int, input().split()))
for i in range(n):
    if t[i] < 0: x += 1
    if x == 3:
        p.append(i - y)
        x = 1
        y = i
    
p.append(n - y)
print(len(p))
print(' '.join(str(i) for i in p))

def readln(): return tuple(map(int, input().split()))

n, = readln()
cnt = al = 0
ans = []
for a in readln():
    if cnt == 2 and a < 0:
        ans.append(al)
        cnt = al = 0
    al += 1
    cnt += a < 0
ans.append(al)
print(len(ans))
print(*ans)


n = int(input())
a = list(map(int, input().split()))
b = []
cur = 0
while cur < n:
    cnt = 0
    size = 0
    while cur < n and cnt < 3:
        if a[cur] < 0:
            cnt += 1
        cur += 1
        size += 1
    if cnt == 3:
        cur -= 1
        size -= 1
    b.append(size)

print(len(b))
print(" ".join(map(str, b)))

__author__ = 'Alex'
n = int(input())
a = [int(i) for i in input().split()]
cnt1, cnt2 = [0] * 2
ans = []
for i in a:
    if i < 0:
        if cnt2 > 1:
            ans.append(cnt1)
            cnt1 = cnt2 = 0
        cnt2 += 1
    cnt1 += 1
if cnt1 > 0:
    ans.append(cnt1)
print(len(ans))
print(' '.join([str(i) for i in ans]))



import sys
import math

n = int(sys.stdin.readline())
an = [int(x) for x in (sys.stdin.readline()).split()]

res = 0
v = []
p = 0
k = 0
for i in an:
	if(i < 0):
		if(p < 2):
			p += 1
		else:
			p = 1
			v.append(str(k))
			res += 1
			k = 0
	k += 1
	
if(k != 0):
	res += 1
	v.append(str(k))
	
print(res)
print(" ".join(v))


n = int(input())
folders = []
loss_count = 0
day_count = 0
for x in map(int, input().split()):
    if x < 0:
        if loss_count == 2:
            folders.append(day_count)
            loss_count = 1
            day_count = 0
        else:
            loss_count += 1
    day_count += 1
folders.append(day_count)
print(len(folders))
print(' '.join(map(str, folders)))


n = int(input())
l = list(map(int,input().split()))
folders = [0]
cur = 0
loss = 0
for i in range(n):
    if l[i] < 0 :
        loss += 1
        if loss == 3 :
            folders.append(0)
            loss = 1
            cur += 1
    #print(i,l[i],cur,loss)
    folders[cur] += 1

print(len(folders))
print(*folders)


P=print
I=input
I()
a=b=0
t=[]
for x in map(int,I().split()):
	if x<0:
		if b==2:t+=[a];b=1;a=0
		else:b+=1
	a+=1
if a:t+=[a]
P(len(t))
for x in t:P(x,end=' ')

n = input()
s = input().split(" ")
rugi, jumlah, berkas = 0, 0, []
for j, i in enumerate(s):
    if int(i) < 0:
        rugi += 1
        if rugi == 3:
            rugi = 1
            berkas.append(str(jumlah))
            jumlah = 1
        else:
            jumlah += 1
    else:
        jumlah += 1
    if j == len(s)-1:
        berkas.append(str(jumlah))
print(len(berkas), " ".join(berkas), sep='\n')


n = int(input())
profit = [int(x) for x in input().split(' ')]

daysInFolders = [0]
folders = 1
badDays = 0

for elem in profit:
	if elem < 0:
		if badDays >= 0 and badDays < 2:
			badDays += 1
			daysInFolders[-1] += 1
		elif badDays == 2:
			daysInFolders.append(1)
			folders += 1
			badDays = 1
		else:
			badDays += 1
			daysInFolders[-1] += 1
	else:
		daysInFolders[-1] += 1
		
print(folders)
print(' '.join([str(x) for x in daysInFolders]))


N = int( input() )
A = list( map( int, input().split() ) )

ans = []
ptr = 0
while ptr < N:
  s = 0
  nxt = ptr
  while nxt < N and s + ( A[ nxt ] < 0 ) <= 2:
    s += ( A[ nxt ] < 0 )
    nxt += 1
  ans.append( nxt - ptr )
  ptr = nxt

print( len( ans ) )
print( * ans )


P=print
I=input
I()
a=b=0
t=[]
for x in map(int,I().split()):
	if x<0:
		if b==2:t+=[a];b=1;a=0
		else:b+=1
	a+=1
if a:t+=[a]
P(len(t))
for x in t:P(x,end=' ')

n = int(input())
arr = list(map(int, input().split()))

counter_negative = 0
current = 0

res = []

for a in arr:
    current += 1
    if a < 0:
        counter_negative += 1

    if counter_negative == 3:
        res.append(current-1)
        current = 1
        counter_negative = 1
res.append(current)

print(len(res))
for r in res:
    print(r, end=' ')


P=print
I=input
I()
a=b=0
t=[]
for x in map(int,I().split()):
	if x<0:
		if b==2:t+=[a];b=1;a=0
		else:b+=1
	a+=1
if a:t+=[a]
P(len(t))
for x in t:P(x,end=' ')


P=print
I=input
I()
a=b=0
t=[]
for x in map(int,I().split()):
	if x<0:
		if b==2:t+=[a];b=1;a=0
		else:b+=1
	a+=1
if a:t+=[a]
P(len(t))
for x in t:P(x,end=' ')


P=print
I=input
I()
a=b=0
t=[]
for x in map(int,I().split()):
	if x<0:
		if b==2:t+=[a];b=1;a=0
		else:b+=1
	a+=1
if a:t+=[a]
P(len(t))
for x in t:P(x,end=' ')


P=print
I=input
I()
a=b=0
t=[]
for x in map(int,I().split()):
	if x<0:
		if b==2:t+=[a];b=1;a=0
		else:b+=1
	a+=1
if a:t+=[a]
P(len(t))
for x in t:P(x,end=' ')


P=print
I=input
I()
a=b=0
t=[]
for x in map(int,I().split()):
	if x<0:
		if b==2:t+=[a];b=1;a=0
		else:b+=1
	a+=1
if a:t+=[a]
P(len(t))
for x in t:P(x,end=' ')


P=print
I=input
I()
a=b=0
t=[]
for x in map(int,I().split()):
	if x<0:
		if b==2:t+=[a];b=1;a=0
		else:b+=1
	a+=1
if a:t+=[a]
P(len(t))
for x in t:P(x,end=' ')


P=print
I=input
I()
a=b=0
t=[]
for x in map(int,I().split()):
	if x<0:
		if b==2:t+=[a];b=1;a=0
		else:b+=1
	a+=1
if a:t+=[a]
P(len(t))
for x in t:P(x,end=' ')


P=print
I=input
I()
a=b=0
t=[]
for x in map(int,I().split()):
	if x<0:
		if b==2:t+=[a];b=1;a=0
		else:b+=1
	a+=1
if a:t+=[a]
P(len(t))
for x in t:P(x,end=' ')


n = int(input())
a = list(map(int, input().split()))
k = 0
fails = 0
ans = []
for i in range(n):
    if a[i] < 0 and fails == 2:
        ans.append(k)
        k = 1
        fails = 1
    else:
        k += 1
        fails += (a[i] < 0)
if sum(ans) < n:
    ans.append(k)
print(len(ans))
print(" ".join(map(str, ans)))