The first line of the standard input holds a single integer N(1<=N<=1000000) , the number of elements in the (bytecomputer's) input sequence.
The second line contains N integers I1,I2…I(n) Ii from set {-1,0,1} that are the successive elements of the (bytecomputer's) input sequence, separated by single spaces.