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

namespace AtCoder
{
    class Program
    {
        static void Main()
        {
            int n = int.Parse(Console.ReadLine());
            var inp = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
            int target = 0;
            var ans = new List<int>();
            for (int i = 0; i < n; i++)
            {
                if (inp[i] < 3200) ans.Add(inp[i] / 400);
                else target++;
            }
            Console.WriteLine("{0} {1}", ans.Distinct().Count(), ans.Distinct().Count() + target);
        }
    }
}