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

class P
{
    static void Main()
    {
        Console.ReadLine();
        int[] rate = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();

        bool[] rateColor = new bool[8];
        int touristCount = 0;
        foreach (var item in rate)
        {
            int rateIndex = Convert.ToInt32(Math.Floor((double)item / 400));
            if (rateIndex >= 8)
            {
                touristCount++;
            }
            else
            {
                rateColor[rateIndex] = true;
            }
        }
        int colorVal = rateColor.Count(x => x);
        Console.WriteLine($"{Math.Max(colorVal,1)} {Math.Min(colorVal + touristCount,8)}");
    }
}
