#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,count;cin>>N;
  vector<int> a(9);
  for(int i=0;i<N;i++){
    cin>>p;
    if(p<=399)a.at(0)++;
    else if(p<=799)a.at(1)++;
    else if(p<=1199)a.at(2)++;
    else if(p<=1599)a.at(3)++;
    else if(p<=1999)a.at(4)++;
    else if(p<=2399)a.at(5)++;
    else if(p<=2799)a.at(6)++;
    else if(p<=3199)a.at(7)++;
    else a.at(8)++;
  }
  for(int i=0;i<9;i++)
    if(a.at(i)!=0)count++;
  cout<<count<<" "<<cout+a.at(8)<<endl;
}