#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int N, color[9] = {}, sum = 0;
int main() {
  cin >> N;
  int a[N];
  for (int i = 0; i < (int)(N); i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      color[8] += 1;
    } else {
      for (int j = 400; j <= 3200; j += 400) {
        if (a[i] < j) {
          j = j / 400 - 1;
          color[j] += 1;
          break;
        }
      }
    }
  }
  for (int i = 0; i < (int)(8); i++) {
    if (color[i]) sum += 1;
  }
  cout << sum << " " << sum + color[8] << endl;
  return 0;
}
