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

namespace atcorder2
{
    class Program
    {
        public static long Read()
        {
            return long.Parse(Console.ReadLine());
        }

        public static long[] Reads()
        {

            return Console.ReadLine().Split().Select(long.Parse).ToArray();
        }






        static void Main(string[] args)
        {
            var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
            Console.SetOut(sw);


            var n = Read();
            var a = Reads();
            var count = new long[9];
            for (int i = 0; i < n; i++)
            {
                for (int j = 0; j < 8; j++)
                {
                    if (400 * j <= a[i] && a[i] < 400 * (j + 1)) count[j]++;
                }
                if (a[i] >= 3200) count[j]++;
            }
            long ans = 0;
            for (int i = 0; i < 8; i++)
            {
                if (count[i] != 0) ans++;
            }
            Console.WriteLine("{0} {1}", ans, ans + count[8]);
         
            Console.Out.Flush();
        }
    }
}


