#include <bits/stdc++.h>
using namespace std;
template <typename T = long long>
inline T IN() {
  T x;
  cin >> x;
  return (x);
}
inline void CIN() {}
template <class Head, class... Tail>
inline void CIN(Head &&head, Tail &&...tail) {
  cin >> head;
  CIN(move(tail)...);
}
template <typename A, size_t N, typename T>
void Fill(A (&array)[N], const T &val) {
  std::fill((T *)array, (T *)(array + N), val);
}
const long long INF = 1e9;
const long long MOD = 1e9 + 7;
const long long LINF = 1e18;
const long long dx[] = {1, -1, 0, 0};
const long long dy[] = {0, 0, 1, -1};
long long N;
vector<long long> a;
vector<long long> now(13);
signed main() {
  cin >> N;
  for (long long i = 0; i < (N); ++i) {
    now[IN() / 400]++;
  }
  long long ans = 0, rem = 0;
  for (long long i = 0; i < (8); ++i)
    if (now[i]) ans++;
  for (long long i = (8); i < (13); ++i) rem += now[i];
  cout << ans << " " << min(ans + rem, 8LL) << "\n";
}
