#include <iostream>
#include <cstdio>
#include <cmath>
#include <string>
#include <cstring>
#include <algorithm>
#include <iomanip>
#include <cstdlib>
#include <cctype>
#define ll long long
#define PI 3.14159265358979323846
using namespace std;

int main() {
	int a[8]= {0};
	int n;
	cin>>n;
	int *b=new int[n];
	for(int i=0; i<n; i++) {
		cin>>b[i];
	}
	int flag=0;
	int sum=0;
	for(int i=0; i<n; i++) {
		if(b[i]>=1&&b[i]<=399) {
			a[0]++;
		} else if(b[i]>=400&&b[i]<=799) {
			a[1]++;
		} else if(b[i]>=800&&b[i]<=1199) {
			a[2]++;
		} else if(b[i]>=1200&&b[i]<=1599) {
			a[3]++;
		} else if(b[i]>=1600&&b[i]<=1999) {
			a[4]++;
		} else if(b[i]>=2000&&b[i]<=2399) {
			a[5]++;
		} else if(b[i]>=2400&&b[i]<=2799) {
			a[6]++;
		} else if(b[i]>=2800&&b[i]<=3199) {
			a[7]++;
		} else if(b[i]>=3200) {
			flag++;
		}
	}
	for(int i=0; i<8; i++) {
		if(a[i]) {
			sum++;
		}
	}
	flag+=sum;
	cout<<sum<<" ";
	if(flag>8) {
		cout<<"8"<<endl;
	} else {
		cout<<flag<<endl;
	}
	return 0;
}
