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

int main(){
int N;
int cnt = 0; 
int d[9] = {0,0,0,0,0,0,0,0,0};  
  cin >> N;
int a[N];
  for(int i = 0;i < N;i++){
  cin >> a[i];
  }
  
  for(int i = 0;i < N;i++){
  if((a[i] <= 399) && (a[i] >= 1)) d[0]++;
    else if((a[i] <= 799) && (a[i] >= 400)) d[1]++;
    else if((a[i] <= 1199) && (a[i] >= 800)) d[2]++;
    else if((a[i] <= 1599) && (a[i] >= 1200)) d[3]++;
    else if((a[i] <= 1999) && (a[i] >= 1600)) d[4]++;
    else if((a[i] <= 2399) && (a[i] >= 2000)) d[5]++;
    else if((a[i] <= 2799) && (a[i] >= 2400)) d[6]++;
    else if((a[i] <= 3199) && (a[i] >= 2800)) d[7]++;
    else if((a[i] >= 3200) && (a[i] <= 4800)) d[8]++;
  }
  
  for(int i = 0;i < 8;i++){
  if(d[i] > 0) cnt++;
  }
  
  if(d[8] > 0) && (d[8] + cnt <= 9){
  cout << cnt << " " << cnt + d[8];
  } 
  
 if(d[8] > 0) && (d[8] + cnt >= 10){
  cout << cnt << " " << 9;
  } 
  
  else{
  cout << cnt << " " << cnt;
  }
  
  return 0;  
}