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

namespace C
{
	internal class Program
	{
		private static int n;
		private static List<int> an;
		private static List<int> rank; // 0,1,2,3,4,5,6,7,8
		private static int over3200Num;

		public static void Main(string[] args)
		{
			n = int.Parse(Console.ReadLine());
			an = new List<int>(n);
			rank = new List<int>(n);
			an.AddRange(Console.ReadLine().Split().Select(int.Parse).ToArray());

			foreach (var a in an)
			{
				var tmp = a / 400;
				if (tmp < 8)
				{
					if (!rank.Contains(tmp)) { rank.Add(tmp); }
				}
				else { over3200Num++; }
			}

			var min = rank.Count == 0 ? 1 : rank.Count;
			var max = rank.Count + over3200Num > 8 ? 8 : rank.Count + over3200Num;
			Console.WriteLine($"{min} {max}");
		}
	}
}