#include <bits/stdc++.h>
using namespace std;
const int INF = 10e9;
int t[9];
int thisRate(int v) {
  if (v < 400) {
    return 0;
  } else if (v < 800) {
    return 1;
  } else if (v < 1200) {
    return 2;
  } else if (v < 1600) {
    return 3;
  } else if (v < 2000) {
    return 4;
  } else if (v < 2400) {
    return 5;
  } else if (v < 2800) {
    return 6;
  } else if (v < 3200) {
    return 7;
  } else
    return 8;
}
void ColorfulLeaderboard() {
  int n;
  cin >> n;
  int res = 0;
  for (size_t i = 0; i < n; i++) {
    int a;
    cin >> a;
    int rate = thisRate(a);
    t[rate]++;
    if (rate != 8 && t[rate] == 1) {
      res++;
    }
  }
  int rate8 = t[8];
  if (res == 0) {
    cout << (rate8 > 0 ? 1 : 0) << " " << (min(rate8, 8)) << endl;
  } else {
    cout << res << " " << (min(res + rate8, 8)) << endl;
  }
}
int main() {
  ColorfulLeaderboard();
  return 0;
}
