using System;

namespace ABC064C
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = Int32.Parse(Console.ReadLine());

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

            bool[] exist = new bool[8];
            int master = 0;

            for (int i = 0; i < N; i++)
            {
                int rank = Int32.Parse(bufs[i]) / 400;
                if (rank < 8)
                {
                    exist[rank] = true;
                }
                else
                {
                    master++;
                }
            }

            int res = 0;
            for (int i = 0; i < 8; i++)
            {
                if(exist[i]) { res++; }
            }

            Console.WriteLine("{0} {1}", res, res + master);
        }
    }
}
