using System;
using System.Linq;
using System.Collections.Generic;
using static System.Console;
using System.Text;
using System.IO;
using static System.Math;
namespace AtCoder
{
    class Program
    {
        static public long[] Sarray() { return ReadLine().Split().Select(long.Parse).ToArray(); }
        static public List<long> Slist() { return ReadLine().Split().Select(long.Parse).ToList(); }

        static readonly long Mod = 1000000000 + 7;

        static void Main(string[] args)
        {
            //SetOut(new StreamWriter(OpenStandardOutput()) { AutoFlush = false });
            var N = Sarray()[0];
            var ai = Sarray();
            var free = 0L;
            var rate = new bool[8];
            foreach (var a in ai)
            {
                if (3199 < a)
                    ++free;
                else
                    rate[a / 400] = true;
            }
            var min = rate.Count(r => r);
            var max = min + free;
            WriteLine($"{min} {max}");
            //Out.Flush();
        }
    }
}