using System;

namespace _064c
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            int[] a = Array.ConvertAll(Console.ReadLine().Split(),int.Parse);
            int count_max = 10;
            int count_min = 0;
            int count = 0;
            int valiable_num = 0;
            int[] a_n = new int[8];
            for(int i = 0; i< N;i++){
                if(a[i]>=3200){
                    valiable_num ++;
                }else{
                    a_n[a[i]/400] = 1; 
                }
            }
            for(int j= 0; j<8;j++){
                count += a_n[j];
                // Console.WriteLine(a_n[j]);
            }
            if(count_max >= count + valiable_num){
                count_max = count + valiable_num;
            }
            count_min = count;
            Console.WriteLine("{0} {1}",count_min,count_max);
        }
    }
}
