#include <iostream>
 
 
using namespace std;
 
 
 
int main (){
    int n;
    int a,temp;
    int b[9] = {0};
    
    cin >> n;
    for (int i = 0; i < n; i++ ){
        cin >> a;
        temp = a / 400;
        if (temp < 8)
            b[temp]++;
        else
            b[8]++;
    }
    
    int min = 0;
    
    
    for (int i = 0; i < 8; i++){
        if (b[i] != 0){
            min++;
        }
    }
    
    cout << min < << min + b[8] << endl;
    
    return 0;
}