#include <bits/stdc++.h>
using namespace std;
template <class T>
void chmin(T& a, const T& b) {
  a = min(a, b);
}
template <class T>
void chmax(T& a, const T& b) {
  a = max(a, b);
}
const double EPS = 1e-9;
const long INF = 999999999;
const long MOD = 1000000007;
int dy[] = {0, 0, 1, -1, 1, 1, -1, -1};
int dx[] = {1, -1, 0, 0, 1, -1, -1, 1};
int main() {
  int N, color, counter = 0;
  set<int> st;
  cin >> N;
  for (int i = 0; i < (N); i++) {
    cin >> color;
    for (int j = (1); j < (9); j++) {
      if (color < 400 * j) {
        st.insert(j);
        break;
      } else if (j == 8) {
        counter++;
      }
    }
  }
  printf("%d %d\n", max(1, (int)st.size()), min(8, (int)st.size() + counter));
  return 0;
}
