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

namespace abc064_c
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] judge = new int[9];
            int N = int.Parse(Console.ReadLine());
            int[] a = Console.ReadLine().Split().Select(int.Parse).ToArray();
            for(int i = 0; i < N; i++)
            {
                if (a[i] >= 3200)
                {
                    judge[8]++;
                }
                else
                {
                    judge[a[i] / 400]++;
                }
            }
            int min = 0;
            int max = 0;
            for (int i = 0; i < 9; i++)
            {
                if (judge[i] > 0)
                {
                    min++;
                    max++;
                }
                else if (judge[8] > 0)
                {
                    max++;
                    judge[8]--;
                }
            }
            if (min == 0)
            {
                min++;
            }
            Console.WriteLine(max + " " + min);
        }
    }
}

