#include<cstdio>
int main()
{
    int a=0,b=0,n,s;
    int f[8]={0,0,0,0,0,0,0,0};
    scanf("%d",&n);
    while(n--)
    {
        scanf("%d",&s);
        for(int i=1;i<=8;i++)
        {
            if(s<i*400&&s>=(i-1)*400&&f[i-1]==0) a++,f[i-1]++;
        }
        if(s>=3200) b++;
    }
    if(a==0) a++,b--;
    printf("%d %d\n",a,a+b);
    return 0;
}
