#include <bits/stdc++.h>
using namespace std;
template <class T, class U>
bool chmax(T &a, const U &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T, class U>
bool chmin(T &a, const U &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return (a * b) / gcd(a, b); }
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int main() {
  bool flag = false;
  long long mx = 0, mn = 0, free = 0;
  int n;
  cin >> n;
  map<int, int> col;
  for (int i = 0, _i = (n); i < _i; ++i) {
    int rate;
    cin >> rate;
    int c = rate / 400;
    if (c < 8 && col[c] != 1) {
      col[c] = 1;
      ++mn;
    } else if (c >= 8) {
      free++;
    }
  }
  if (mn == 0 && free != 0)
    mx = 1;
  else {
    mx = mn + free;
  }
  cout << mn << " " << mx << endl;
  return 0;
}
