#include<iostream>
using namespace std;
int count[13];
int main(){

  int N;
  cin>>N;
  while(N--){
    int ai;
    cin>>ai;
    count[ai/400]++;
  }
  int min =0, max = 0;
  for(int i= 0;i<(3200/400);i++){
    if(count[i]!=0)
      min++,max++;
  }
  for(int i=3200/400;i<(4800/400);i++)
    max+=count[i];
  cout<<min<<" "<<max<<endl;

  return 0;
}
