#include <bits/stdc++.h>
using namespace std;
template <class T1, class T2>
inline bool minimize(T1& a, T2 b) {
  return b < a && (a = b, 1);
}
template <class T1, class T2>
inline bool maximize(T1& a, T2 b) {
  return a < b && (a = b, 1);
}
template <class T>
void operator>>(istream& ist, vector<T>& vs) {
  for (auto& e : vs) cin >> e;
}
int const inf = 1 << 29;
int main() {
  int N;
  cin >> N;
  set<int> st;
  int count = 0;
  for (int i = 0; i < (int)N; i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      count++;
    } else {
      st.insert(a / 400);
    }
  }
  if (N == 1) {
    std::cout << "1 ";
  } else {
    std::cout << st.size() << " ";
  }
  std::cout << st.size() + count << "\n";
  return 0;
}
