#include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define rFOR(i,a,b) for(int i=a;i>=b;i--)
#define rep(i,b) FOR(i,0,b)
#define INF 1e9
#define dump(x) cerr<< #x << " = "<<(x)<<endl
#define int long long

using ll = long long;
const ll mod = LLONG_MAX;

typedef pair<int,int> P;

int a[110];
bool isc[10];
int cnt,ret;
signed main(){
  int n;
  cin>>n;

  rep(i,n){
    cin>>a[i];
  }
  rep(i,10){
    isc[i]=false;
  }

  rep(i,n){
    if(a[i]<=399)isc[0]=true;
    else if(a[i]<=799)isc[1]=true;
    else if(a[i]<=1199)isc[2]=true;
    else if(a[i]<=1599)isc[3]=true;
    else if(a[i]<=1999)isc[4]=true;
    else if(a[i]<=2399)isc[5]=true;
    else if(a[i]<=2799)isc[6]=true;
    else if(a[i]<=3199)isc[7]=true;
    else cnt++;
  }

  rep(i,9){
    if(isc[i])ret++;
  }

  if(ret>0)t=0;
  else t=1;

  cout<<ret+t<<" "<<ret+cnt<<endl;

}
