//#define _GLIBCXX_DEBUG

#include<bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
const int INF= 1e9+5;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll> >vvl;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> T;
const ll MOD=1000000007LL;
int main(){
  ll n;cin>>n;
  vl a(n);
  rep(i,n)cin>>a[i];
  set<ll>S;
  ll count=0;
  rep(i,n){
    if(a[i]>=3200){
      count++;
      continue;
    }
    S.insert(a[i]/400);
  }
  ll k=S.size();
  cout<<S.size()<<" "<<min(8,k+count)<<endl;
}