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

namespace C
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = int.Parse(Console.ReadLine());
            var a = Console.ReadLine().Split().Select(int.Parse).ToList();
            
            var over3200 = a.Count(x => x>=3200);
            var colorList = a.Where(x=> x<3200).Select(x=> x/400).Distinct().ToList();

            var minAns = colorList.Count()>0 ? colorList.Count() : 1;
            var maxAns = minAns + over3200;

            Console.WriteLine($"{minAns} {maxAns}");
        }
    }
}
