#include <bits/stdc++.h>
using namespace std;
const int INF = 100100100;
const long long INFLL = 1001001001001001001;
const int MOD = (int)1e9 + 7;
const long long MODLL = (long long)1e9 + 7;
const double EPS = 1e-9;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  vector<bool> flag(8, false);
  int count = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] <= 399) {
      flag[0] = true;
    } else if (a[i] <= 799) {
      flag[1] = true;
    } else if (a[i] <= 1199) {
      flag[2] = true;
    } else if (a[i] <= 1599) {
      flag[3] = true;
    } else if (a[i] <= 1999) {
      flag[4] = true;
    } else if (a[i] <= 2399) {
      flag[5] = true;
    } else if (a[i] <= 2799) {
      flag[6] = true;
    } else if (a[i] <= 3199) {
      flag[7] = true;
    } else {
      count++;
    }
  }
  int col = 0;
  for (int i = 0; i < 8; i++) {
    if (flag[i]) {
      col++;
    }
  }
  cout << col << " " << col + count << endl;
  return 0;
}
