#include <bits/stdc++.h>
using namespace std;
long gcd(long a, long b) {
  if (a % b == 0) {
    return b;
  } else {
    return gcd(b, a % b);
  }
}
long lcm(long a, long b) { return (a * b) / gcd(a, b); }
template <typename A, typename B>
inline bool chmax(A &a, B b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename A, typename B>
inline bool chmin(A &a, B b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const long long INF = 1ll << 29;
const long long MOD = 1000000007;
const double EPS = 1e-10;
int a[101];
int rate[8];
int main() {
  int n;
  int over = 0;
  cin >> n;
  for (long long i = (0); i < (n); i++) {
    scanf("%d", &a[i]);
    if (a[i] < 3200)
      rate[a[i] / 400]++;
    else
      over++;
  }
  int sum = 0;
  for (long long i = (0); i < (8); i++) {
    if (rate[i]) sum++;
  }
  cout << sum << endl;
  cout << sum + over << endl;
  return 0;
}
