#include<bits/stdc++.h>
using namespace std;
#define lp(i,n) for(int i=0;i<n;i++)
#define lps(i,j,n) for(int i=j;i<n;i++)
#define fordebug int hoge;cin>>hoge;
#define DEKAI 1000000007;
#define INF (1<<28)
#define int long long
#define double long double
#define floot10 cout<<fixed<<setprecision(10)
int x[9];


 
 
signed main(){
  int n;
  cin>>n;
  lp(i,n){
    int a;
    cin>>a;
    a/=400;
    x[min(a,8)]++;
  }
  int cnt=0;
  lp(i,8)if(x[i]>0)cnt++;
  cout<<cnt<<" "<<cnt+x[8]<<endl;
  return 0;
}
