# -- coding: utf-8 

flagp=0
flagm=0
number=int(input())
while number != 0:
    number=int(input())
    if number >= 0:
        flagp=flagp+1
    else:
        flagm=flagm+1
    
print (flagp*flagm)
            
     



        
    
        


        
        