using System;
using System.Linq;

namespace abc064_c
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            int[] x = Console.ReadLine().Split().Select(int.Parse).ToArray();
            bool[] a = new bool[8];
            int secret = 0;
            for (int i = 0; i < n; i++)
            {
                if (x[i] < 3200) a[x[i] / 400] = true;
                else secret++;
            }
            int ret = 0;
            for (int i = 0; i < 8; i++)
            {
                if (a[i]) ret++;
            }
            Console.WriteLine(ret + " " + (ret + secret));
        }
    }
}