#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using PII = pair<int, int>;
const int INF = numeric_limits<int>::max();
long long mod(long long val, long long m) {
  long long res = val % m;
  if (res < 0) res += m;
  return res;
}
long long gcd(ll a, ll b) {
  if (a % b == 0) {
    return b;
  } else {
    return gcd(b, a % b);
  }
}
long long lcm(ll a, ll b) { return a / gcd(a, b) * b; }
int main() {
  int n;
  cin >> n;
  set<int> s;
  int over = 0;
  for (int i = 0; i < (n); i++) {
    int a;
    cin >> a;
    if (a >= 3200) {
      over++;
    } else {
      s.insert(a / 400);
    }
  }
  cout << s.size() << " " << s.size() + over << endl;
  return 0;
}
