using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
namespace AtCoder.ABC064
{
    class ColorfulLeaderBoard
    {
        public static void Main()
        {
            var n = int.Parse(ReadLine().Trim());
            var a = ReadLine().Trim().Split(' ').Select(_ => int.Parse(_) / 400);
            var constColor = a.Where(_ => _ < 8).Distinct().ToArray().Length;
            var variableColor = a.Where(_ => _ >= 8).ToArray().Length;
            var min = constColor;
            var max = (constColor + variableColor > 8) ? 8 : (constColor + variableColor);
            WriteLine(min.ToString() + ' ' + max.ToString());
        }
    }
}
