#include <bits/stdc++.h>
using namespace std;
int main(){
    vi c(9);
    cin>>n;
    REP(i,n){
        int a;
        cin>>a;
        c[min(8,a/400)]++;
    }
    int ans=0;
    REP(i,7)ans+=!!c[i];
    cout<<ans+!!c[8]<<endl;
    cout<<ans+c[8]<<endl;
    return 0;
}