using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;

class Program
{
    static void Main()
    {
        new Magatro().Solve();
    }
}

class Magatro
{
    int N;
    int[] A;
    private void Scan()
    {
        N = int.Parse(Console.ReadLine());
        A = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
    }

    public void Solve()
    {
        Scan();
        int rand = 0;
        bool[] b = new bool[8];
        foreach(int i in A)
        {
            if (i >= 3200)
            {
                rand++;
                continue;
            }
            b[i / 400] = true;
        }
        int min = b.Count(bo => bo);
        Console.WriteLine("{0} {1}", min, min + rand);
    }
}
