#include <bits/stdc++.h>
using namespace std;
template <class T>
T to_T(const string &s) {
  istringstream is(s);
  T res;
  is >> res;
  return res;
}
template <class T>
string to_s(const T &a) {
  ostringstream os;
  os << a;
  return os.str();
}
void solve(long long N, vector<long long> a) {
  long long count[10] = {};
  long long ans = 0;
  for (int i = (0); i < (N); ++i) a[i] = min(3200LL, a[i]);
  for (int i = (0); i < (N); ++i) {
    count[a[i] / 400]++;
  }
  for (int i = (0); i < (8); ++i)
    if (count[i]) ans++;
  if (ans == 0 && count[8]) {
    cout << "1 ";
  } else {
    cout << ans << " ";
  }
  cout << min(8LL, ans + count[8]) << endl;
}
int main() {
  ios::sync_with_stdio(false);
  long long N;
  cin >> N;
  vector<long long> a(N - 1 + 1);
  for (int i = 0; i <= N - 1; i++) {
    cin >> a[i];
  }
  solve(N, a);
  return 0;
}
