#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector<long long>;
using sll = set<long long>;
template <typename T>
T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
int main() {
  ll n, topCnt = 0, a;
  cin >> n;
  sll cnt;
  for (long i = 0; i < n; i++) {
    cin >> a;
    if (a >= 3200) {
      topCnt++;
    } else {
      cnt.insert(a / 400);
    }
  }
  cout << cnt.size() << ' ';
  cout << topCnt + cnt.size() << '\n';
}
