#include <stdio.h>

int main()
{
    int n,a[100],color[8] = 0;

    scanf("%d",&n);
    for (int i = 0; i < n; i++)
    {
        scanf("%d",&a[i]);
        color[a[i] / 400] ++;
    }

    int max = 0,min = 101;

    for (int i = 0; i < 8; i++)
    {
        if(max < color[i])max = color[i];
        if(min > color[i])min = color[i];
    }
    
    printf("%d %d\n",min,max);
}