#include <bits/stdc++.h>
using namespace std;
template <class A, class B>
inline bool chmax(A &a, const B &b) {
  return b > a && (a = b, true);
}
template <class A, class B>
inline bool chmin(A &a, const B &b) {
  return b < a && (a = b, true);
}
const int INF = 1 << 30;
const int dx[] = {1, 0, -1, 0, 1, 1, -1, -1};
const int dy[] = {0, -1, 0, 1, 1, -1, -1, 1};
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> count(10, 0);
  int a;
  for (int i = 0; i < n; i++) {
    cin >> a;
    a = a / 400;
    for (int j = 0; j < 9; j++) {
      if (j == a) {
        count[j]++;
      }
    }
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    if (count[i] > 0) {
      sum++;
    }
  }
  if (sum == 0 && count[8] != 0) {
    cout << 1 << ' ';
  } else if (sum == 0 && count[8] == 0) {
    cout << 0 << ' ';
  } else {
    cout << sum << ' ';
  }
  sum += count[8];
  cout << sum << '\n';
  return (0);
}
