using System;

public class Class1
{
    static void Main(string[] args)
    {
        int N = int.Parse(Console.ReadLine());

        string[] input = Console.ReadLine().Split(' ');

        int[] an = new int[input.GetLength(0)];
        int[] rates = { 0, 0, 0, 0, 0, 0, 0, 0 , 0};

        for (int i = 0; i < input.GetLength(0); i++)
        {
            an[i] = int.Parse(input[i]);

            if(an[i] >= 1 && an[i] <= 399)
            {
                rates[0]++;
            }
            else if(an[i] >= 400 && an[i] <= 799)
            {
                rates[1]++;
            }
            else if(an[i] >= 800 && an[i] <= 1199)
            {
                rates[2]++;
            }
            else if(an[i] >= 1200 && an[i] <= 1599)
            {
                rates[3]++;
            }
            else if(an[i] >= 1600 && an[i] <= 1999)
            {
                rates[4]++;
            }
            else if(an[i] >= 2000 && an[i] <= 2399)
            {
                rates[5]++;
            
            }
            else if(an[i] >= 2400 && an[i] <= 2799)
            {
                rates[6]++;
            }
            else if(an[i] >= 2800 && an[i] <= 3199)
            {
                rates[7]++;
            }
            else if(an[i] >= 3200)
            {
                rates[8]++;
            }
        }


        int cmin = 0;
        int cmax = 0;

        for(int i = 0; i < 8; i++)
        {
            if(rates[i] > 0)
            {
                cmin++;
                cmax++;
            }
        }


        cmax += rates[8];


        Console.WriteLine(cmin + " " + cmax);




    }
}
