#include <iostream>
using namespace std;
main () {
	int n, b;
	cin>>n;
	int a[8] = {0, 0, 0, 0, 0, 0, 0, 0}, hitung = 0, result = 0;
	while (n--)
	{
		cin>>b;
		if (b >= 1 && b <= 399)
		{
		a[0] = 1;
		} else if (b >= 400 && b <= 799)
		{
		a[1] = 1;
		} else if (b >= 800 && b <= 1199)
		{
			a[2] =1;
		} else if (b >= 1200 && b <= 1599)
		{
			a[3] = 1;
		} else if (b >= 1600 && b <= 1999)
		{
			a[4] = 1;
		} else if (b >= 2000 && b <= 2399)
		{
			a[5] = 1;
		} else if (b >= 2400 && b <= 2799)
		{
			a[6] = 1;
		} else if (b >= 2800 && b <= 3199)
		{
			a[7] = 1;
		}else if (b >= 3200)
		{
			hitung++;
		}
	}
for (int i=0;i<8;i++)
{
	if (a[i] == 1)
	{
		result++;
	}
}
		cout<<result<<" "<<result+hitung;
}