#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b){return b!=0?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a*b/gcd(a,b);}

int main(){
    ll n;
    cin>>n;
    ll rate[9]={},a;
    rep(i,n){
        cin>>a;
        rate[min(a/400,8)]++;
    }
    ll cnt=0;
    rep(i,8){
        if(rate[i]!=0) cnt++;
    }
    cout<<cnt<<' '<<min(8,cnt+rate[8])<<endl;
    return 0;
}