using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.IO.Pipes;
using System.ComponentModel;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            int[] Arr = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            int[] col = new int[8];
            int or = 0;
            int min = 0;
            int max = 0;

            for (int i = 0; i < N; i++) 
            {
                if (Arr[i] >= 3200)
                {
                    or++;
                }
                else 
                {
                    col[Arr[i] / 400] = 1;
                }
            }

            min = col.Sum();

            if (min + or > 8)
            {
                max = 8;
            }
            else 
            {
                max = min + or;
            }
            
            if (min == 0) 
            {
                min = 1;
            }
            Console.WriteLine(min + " " + max);


        }

    }
}
