using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using System.Runtime.CompilerServices;
using static MyUtil;

class MyUtil
{
    public static int[] ReadIntArray()
    {
	return ReadLine().Split().Select(x => int.Parse(x)).ToArray();
    }
}

class Program
{
    public static void Main()
    {
	int n = int.Parse(ReadLine());
	int[] a = ReadIntArray();

	
	bool[] cs = new bool[8];
	int ncolor = 0;
	int nOver = 0;
	
	for (int i = 0; i < n; i++)
	{
	    int c = a[i] / 400;

	    if (c < 8 && !cs[c])
	    {
		ncolor++;
		cs[c] = true;
	    }
	    else if (c >= 8)
	    {
		nOver++;
	    }
	}
	
	int min = ncolor == 0 ? nOver : ncolor;
	int max = ncolor + nOver;
	WriteLine($"{min} {max}");
    }
}
    
