#include <bits/stdc++.h>
using namespace std;
class ParseError {};
const long long int INF = 1LL << 50;
char fi[101][101];
int day[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
double EPS = 1e-14;
const int MAX_V = 100;
const int MAX_N = 100;
char o[3] = {'+', '-', '*'};
int bow[353][353] = {0};
double add(double a, double b) {
  if (abs(a + b) < EPS * (abs(a) + abs(b))) return 0;
  return a + b;
}
long long mod = 1000000007;
long long pow(long long int i, long long int j) {
  long long int tmp = 1;
  while (j) {
    if (j % 2) tmp = tmp * i % mod;
    i = i * i % mod;
    j /= 2;
  }
  return tmp;
}
int expression(string::const_iterator &);
int term(string::const_iterator &);
int factor(string::const_iterator &);
int number(string::const_iterator &);
int expression(string::const_iterator &begin) {
  int ret = term(begin);
  for (;;) {
    if (*begin == '+') {
      begin++;
      ret += term(begin);
    } else if (*begin == '-') {
      begin++;
      ret -= term(begin);
    } else
      break;
  }
  return ret;
}
int term(string::const_iterator &begin) {
  int ret = factor(begin);
  for (;;) {
    if (*begin == '*') {
      begin++;
      ret *= factor(begin);
    } else if (*begin == '/') {
      begin++;
      ret /= factor(begin);
    } else
      break;
  }
  return ret;
}
int factor(string::const_iterator &begin) {
  int ret;
  if (*begin == '(') {
    begin++;
    ret = expression(begin);
    begin++;
  } else
    ret = number(begin);
  return ret;
}
int number(string::const_iterator &begin) {
  int ret = 0;
  while (isdigit(*begin)) {
    ret *= 10;
    ret += *begin - '0';
    begin++;
  }
  return ret;
}
int main(void) {
  int n;
  cin >> n;
  vector<int> d(8, 0);
  int count = 0;
  int a;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a >= 1 && a <= 399)
      d[0]++;
    else if (a >= 400 && a <= 799)
      d[1]++;
    else if (a >= 800 && a <= 1199)
      d[2]++;
    else if (a >= 1200 && a <= 1599)
      d[3]++;
    else if (a >= 1600 && a <= 1999)
      d[4]++;
    else if (a >= 2000 && a <= 2399)
      d[5]++;
    else if (a >= 2400 && a <= 2799)
      d[6]++;
    else if (a >= 2800 && a <= 3199)
      d[7]++;
    else if (a >= 3200)
      count++;
  }
  int sai = 0, zai = 0;
  for (int i = 0; i < 8; i++) {
    if (d[i]) sai++;
  }
  cout << sai << " " << sai + count << endl;
}
