#include<iostream>
#include<string>
#include<algorithm>
#include<utility>
#include<cmath>
#include<vector>
#include<climits>
#define ll long long int
using namespace std;
int main(void) {
  int n;
  cin>>n;
  int c[8]={0};
  int o=0;
  int a=0;
  for(int i=0; i<n; i++) {
    int x;
    cin>>x;
    if(x>=3200) o++;
    if(c[x/400]==0) {
      a++;
      c[x/400]=1;
    }
  }
  if(a==0) cout<<1<<<" "<<o<<endl;
  else cout<<a<<" "<<a+o<<endl;
  return 0;
}
