#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const long long INF = 1LL << 29;
const long long mod = 1e9 + 7;
template <class T>
ostream &operator<<(ostream &os, const vector<T> &v) {
  int n = v.size();
  for (int(i) = 0; (i) < (long long)(n); ++(i))
    os << v[i] << (i == n - 1 ? "" : " ");
  return os;
}
int cnt[10];
int main() {
  int n;
  cin >> n;
  for (int(i) = 0; (i) < (long long)(n); ++(i)) {
    int a;
    cin >> a;
    a /= 400;
    cnt[min(a, 8)]++;
  }
  int res = 0;
  for (int(i) = 0; (i) < (long long)(8); ++(i)) res += cnt[i] > 0;
  int res2 = res + cnt[8];
  cout << max(res, 1) << " " << min(res2, 8) << endl;
  return 0;
}
