using System;
using System.Collections.Generic;

namespace C___Colorful_Leaderboard
{
    class Program
    {
        static void Main (string[] args)
        {
            var n = int.Parse (Console.ReadLine ());
            var a = Console.ReadLine ().Split (' ');
            var rate = new HashSet<int> ();
            var fCount = 0;
            for (var i = 0; i < a.Length; i++)
            {
                var b = int.Parse (a[i]);
                if (1 <= b && b <= 399)
                    rate.Add (1);

                else if (400 <= b && b <= 799)
                    rate.Add (2);

                else if (800 <= b && b <= 1199)
                    rate.Add (3);

                else if (1200 <= b && b <= 1599)
                    rate.Add (4);

                else if (1600 <= b && b <= 1999)
                    rate.Add (5);

                else if (2000 <= b && b <= 2399)
                    rate.Add (6);

                else if (2400 <= b && b <= 2799)
                    rate.Add (7);

                else if (2800 <= b && b <= 3199)
                    rate.Add (8);

                else
                {
                    rate.Add (9);
                    fCount++;
                }
            }
            if (fCount == 1 && rate.Count == 1)
            {
                Console.Write ($"{rate.Count} ");
                Console.WriteLine (rate.Count);
            }
            else if (fCount > 0)
            {
                Console.Write ($"{rate.Count-1} ");
                Console.WriteLine (rate.Count - 1 + fCount);
            }
            else
            {
                Console.Write ($"{rate.Count} ");
                Console.WriteLine (rate.Count);
            }

        }
    }
}