#include <bits/stdc++.h>

using namespace std;

int main(){
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> iro(8);
  int tuyotuyo=0;

  for(int i=0;i<n;i++){
    cin >> a.at(i);
  }
  sort(a.begin(),a.end());

  for(int k: a){
    if(1<=k && k<400){
      iro.at(0)++;
    }
    if(400<=k && k<800){
      iro.at(1)++;
    }
    if(800<=k && k<1200){
      iro.at(2)++;
    }
    if(1200<=k && k<1600){
      iro.at(3)++;
    }
    if(1600<=k && k<2000){
      iro.at(4)++;
    }
    if(2000<=k && k<2400){
      iro.at(5)++;
    }
    if(2400<=k && k<2800){
      iro.at(6)++;
    }
    if(2800<=k && k<3200){
      iro.at(7)++;
    }
    else{
      tuyotuyo++;
    }
  }
  sort(iro.begin(),iro.end())

  cout << iro(0) << iro(7)+tuyotuyo << endl;

}
