using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using static MyIO;


public class C
{
	public static void Main()
	{
		int N = GetInt();
		int[] numPerColor = new int[8];
		int numFreeColor = 0;
		for(int i = 0; i < N; i++)
		{
			int a = GetInt();
			if(a >= 3200)
			{
				numFreeColor++;
			}
			else
			{
				numPerColor[a/400]++;
			}
		}

		int min = 0;
		for(int i = 0; i < 8; i++)
		{
			if(numPerColor[i] > 0)
				min++;
		}

		int max = min + numFreeColor;
		Console.WriteLine("{0} {1}", min, max);
	}
}


public static class MyIO
{
	private static string[] args = null;
	private static int num = -1;
	private static int used = -1;

	private static string getArg()
	{
		if(used == num)
		{
			args = Console.ReadLine().Split(' ');
			num = args.Length;
			used = 0;
		}
		return args[used++];
	}

	public static int GetInt(){ return int.Parse(getArg()); }
	public static long GetLong(){ return long.Parse(getArg()); }
	public static double GetDouble(){ return double.Parse(getArg()); }
	public static string GetString(){ return getArg(); }
}
