#include <bits/stdc++.h>
using namespace std;
#define int long long int
int32_t main(){
	int n,m;cin>>n;m=n;
	int high=0;
	int gray=0;
	int brown=0;
	int green=0;
	int cyan=0;
	int blue=0;
	int yellow=0;
	int orange=0;
	int red=0;
	while(m--){
		int tmp;cin>>tmp;
		if(tmp<400) gray++;
		else if(tmp<800) brown++;
		else if(tmp<1200) green++;
		else if(tmp<1600) cyan++;
		else if(tmp<2000) blue++;
		else if(tmp<2400) yellow++;
		else if(tmp<2800) orange++;
		else if(tmp<3200) red++;
		else high++;
	}
	int a1=!!gray+!!brown+!!green+!!cyan+!!blue+!!yellow+!!orange+!!red;
	cout<<max(a1,1)<<" "<<a1+high;
}
