#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <stack>
#include <iomanip>
#include <queue>
#include <deque>
#include <sstream>
#include <stdio.h>
#include <string>
#include <cmath>
#include <map>
#include <utility>
using namespace std;

#define s(n) scanf("%d",&n)
#define sc(n) scanf("%c",&n)
#define ss(n) scanf("%s",&n)
#define MOD 1000000007
#define ll long long int
#define vi vector<int>
#define vii vector< vector<int> >
#define PI 3.1415926535897932384626433832795

int color(int x) {
	if(x >= 1 && x<= 399) {
		return 0;
	}
	if(x >= 400 && x<= 799) {
		return 1;
	}
	if(x >= 800 && x<= 1199) {
		return 2;
	}
	if(x >= 1200 && x<= 1599) {
		return 3;
	}
	if(x >= 1600 && x<= 1999) {
		return 4;
	}
	if(x >= 2000 && x<= 2399) {
		return 5;
	}
	if(x >= 2400 && x<= 2799) {
		return 6;
	}
	if(x >= 2800 && x<= 3199) {
		return 7;
	}
	return 8;
}

int main() {
	int n;
	cin >> n;
	vector<bool> was (8,false);
	int count3200 = 0;
	int max = 0;
	for(int i = 0; i < n; i++) {
		int x;
		cin >> x;
		int col = color(x);
		if(col == 8) {
			count3200++;
		} else {
			was[col] = true;
		}
	}
	int count = 0;
	for(int i = 0; i < 8; i++) {
		if(was[i]) {
			count++;
		}
	}
	cout << max(1,count) << " " << (count+count3200);
	return 0;
}

