#include <bits/stdc++.h>

using namespace std;

int arr[8]={399,799,1199,1599,1999,2399,2799,3199};
set<int> got;

int main()
{
	int n;
	cin >> n;
	int got2=0;
	int i;
	for(i=0;i<n;i++)
	{
		int x;
		cin >> x;
		int i;
		for(i=0;i<8;i++)
			if(x<=arr[i])
				break;
		if(i<8)
			got.insert(i);
		else
			got2++;
	}
	cout << max((int)got.size(),1) << " " << got2+got.size() << endl;

}