#include <bits/stdc++.h>
using namespace std;
template <class c>
struct rge {
  c b, e;
};
template <class c>
rge<c> range(c i, c j) {
  return rge<c>{i, j};
}
template <class c>
auto dud(c *x) -> decltype(cerr << *x, 0);
template <class c>
char dud(...);
struct debug {
  template <class c>
  debug &operator<<(const c &) {
    return *this;
  }
};
void solve() {
  int n;
  cin >> n;
  vector<int> cnt(9, 0);
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    if (x >= 3200)
      cnt[8]++;
    else {
      cnt[x / 400]++;
    }
  }
  if (cnt[8] == 0) {
    int res = 0;
    for (int i = 0; i < 8; ++i) {
      if (cnt[i] != 0) res++;
    }
    cout << res << ' ' << res;
  } else {
    int res = 0, ct = 0, pl = cnt[8];
    for (int i = 0; i < 8; ++i) {
      if (cnt[i] != 0) ct++;
      if (cnt[i] == 0 && cnt[8] > 0) {
        cnt[i]++;
        cnt[8]--;
      }
    }
    cout << ct << ' ' << ct + pl;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
}
