#include <bits/stdc++.h>
using namespace std;
int n;
void solve()
{
    vector < int > ans(9,0);
    int x,res=0;
    while(n--)
    {
        cin>>x;
        ans[(x/400>=8?8:x/400)]++;
    }
    for (x=0;x<8;x++)
        if (ans[x]) res++;
    cout<<(res?res:1)<<" "<<res+ans[8]<<endl;
}
int main()
{
    while(cin>>n)
        solve();
}