using System;
using System.Collections.Generic;
using System.Linq;

class Solution
{
    static void Main()
    {
        var n = int.Parse(Console.ReadLine());
        var array = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
        var colors = new int[9];
        foreach (var a in array)
        {
            var c = Math.Min(a / 400, 8);
            colors[c]++;
        }

        var min = colors.Take(8).Count(c => c != 0);
        var max = min + colors.Last();

        Console.WriteLine($"{min} {max}");
    }
}