#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &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 / gcd(a, b) * b; }
bool compare(pair<long long, long long> a, pair<long long, long long> b) {
  if (a.first != b.first) {
    return a.first < b.first;
  } else {
    return a.second < b.second;
  }
}
bool In_map(long long y, long long x, long long h, long long w) {
  if (y < 0 || x < 0 || y >= h || x >= w) {
    return 0;
  } else {
    return 1;
  }
}
const vector<long long> dx{1, 0, -1, 0};
const vector<long long> dy{0, 1, 0, -1};
int main() {
  long long N;
  cin >> N;
  long long cnt = 0;
  long long now = 0;
  map<long long, bool> m;
  for (int i = 0; i < (N); i++) {
    long long a;
    cin >> a;
    if (a >= 3200) {
      cnt++;
    } else {
      a /= 400;
      if (m[a] == 0) {
        now++;
        m[a] = 1;
      }
    }
  }
  cout << now << " " << now + cnt << endl;
  return 0;
}
