using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace procon
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            string[] input = Console.ReadLine().Split(' ');
            int[] a = new int[n];

            for(int i = 0;i<n;i++)
            {
                int tmpnum = int.Parse(input[i]);
                if(tmpnum >= 3200)
                {
                    a[i] = 0;
                }
                else if (tmpnum >= 2800)
                {
                    a[i] = 1;
                }
                else if (tmpnum >= 2400)
                {
                    a[i] = 2;
                }
                else if (tmpnum >= 2000)
                {
                    a[i] = 3;
                }
                else if (tmpnum >= 1600)
                {
                    a[i] = 4;
                }
                else if (tmpnum >= 1200)
                {
                    a[i] = 5;
                }
                else if (tmpnum >= 800)
                {
                    a[i] = 6;
                }
                else if (tmpnum >= 400)
                {
                    a[i] = 7;
                }
                else
                {
                    a[i] = 8;
                }
            }

            var min = a
                .GroupBy(x => x)
                .Select(c => new { item = c.Key, Count = c.Count() })
                .Where(b => b.item > 0)
                .Count();


            Console.Write(min);
            Console.Write(" ");

            var over3200 = a
                .GroupBy(x => x)
                .Select(c => new { item = c.Key, count = c.Count() })
                .Where(b => b.item == 0)
                .Sum(b => b.count);

            if(min == 0)
            {
                min = 1;
                over3200 = 0;
            }
            Console.Write(min);
            Console.Write(" ");
            Console.WriteLine(min + over3200);
        }
    }
}