import java.util.*;
import java.io.*;


public class veryColdComputer
{
    public static void main(String[] andriod)
    {
       Scanner sc = new Scanner(System.in);
       
       // Read in the number of temps
       int num_temps = sc.nextInt();
       // String string_val = sc.next();
       // String line = sc.nextLine();
       // long long_val = sc.nextLong();
       // double double_val = sc.nextDouble();
       
       // Probably use this
       // for (int i = 0; i < n; i++)
   
       // Initialize the number of days
       int num_cold_days = 0;
   
       // read in all remaining integers
       while (sc.hasNextInt())
       {
           // Read in the temp for the current day
           int temp = sc.nextInt();
           
           // If the temp is cold
           if (temp < 0)
           {
               num_cold_days++;
           }
       }
       
       // Print the number of cold days
       //if ( num_temps % 7 != 1)
            System.out.println(num_cold_days);
    }
}