using System;
using System.Collections.Generic;
using System.Linq;

namespace AtCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            //[summary]C - Colorful Leaderboard
            int n = int.Parse(Console.ReadLine());
            var a = ReadLine();
            var rank = new int[9];

            foreach(var ai in a)
            {
                int index = ai / 400;

                if (index > 7)
                {
                    rank[8]++;
                }
                else
                {
                    rank[index]++;
                }
            }

            int min = 0;

            for(int i = 0; i < 8; i++)
            {
                if (rank[i] > 0)
                {
                    min++;
                }
            }
            
            Console.WriteLine("{0} {1}", min, min+rank[8]);
        }

        static List<int> ReadLine()
        {
            var line = Console.ReadLine();
            var array = line.Split(' ');

            return array.Select(x => int.Parse(x)).ToList();
        }
    }
}