using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace abc64
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            string[] str = Console.ReadLine().Split(' ');
            int[] rate = { 0, 0, 0, 0, 0, 0, 0, 0 };
            int pro = 0;
            for (int i = 0; i < N; i++)
            {
                int temp = int.Parse(str[i]);
                if (temp >= 3200)
                {
                    pro++;
                }else
                {
                    rate[temp / 400] = 1;
                }
            }
            int ans = 0;
            for(int i = 0; i < 8; i++)
            {
                ans += rate[i];
            }
            Console.WriteLine("{0} {1}", ans, ans+pro);
           
        }
    }
}
