using System;
using System.Linq;

class Program
{
    public static void Main(string[] args)
    {
        int N = int.Parse(System.Console.ReadLine());
        var parms = System.Console.ReadLine().Split();

        int[] nColor = new int[9];

        for(int i = 0; i < N; i++)
        {
            int rate = int.Parse(parms[i]);
            if (rate <= 3199)
            {
                nColor[(int)(rate/400)] = 1;
            }
            else
            {
                nColor[8]++;
            }
        }

        int max = nColor.Sum();
        int min = max - nColor[8]; 

        System.Console.WriteLine("{0} {1}",min,max);
    }
}

