#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  int a[n];
  int i;
    int color[9]={};
  for(i=0;i<n;i++){
    cin >> a[i];
    if(a[i]<3200)color[a[i]/400]++;
    else color[8]++;
  }
  int cnt = 0;
  for(i=0;i<=7;i++){
    if(color[i]>0) cnt++;
  }
  int max = min(8,cnt+color[8]);
  int min = max(1,cnt);

  cout << min << " " << max;
}