#include<bits/stdc++.h>
using namespace std;


int main(){
  int n;
  cin >> n;
  vector<pair<int, int>q(n);
  for(int i=0; i<n; ++i){
    int a=0; cin >> a;
    int b=0;
    if(a<=399) b=0;
    else if(a>400 && a<=799) b=1;
      
    else if(a>800 && a<=1199) b=2;
      
    else if(a>1200 && a<=1599) b=3;
      
    else if(a>1600 && a<=1999) b=4;
      
    else if(a>2000 && a<=2399) b=5;
      
    else if(a>2400 && a<=2799) b=6;
      
    else if(a>2800 && a<=3199) b=7;
    
    else if(a>3200) b=8;
    
    q[i]=make_pair(b ,a);
    
  }
  
  sort(q.begin(), q.end());
  int res1=count(q.begin(), q.end(), 8);
  int res2=q.erase(unique(q.begin(), q.end()), q.end());
  
  cout << res1+res2-1 << ""<< res2<< endl;
}