#include <bits/stdc++.h>
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) {
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
int main(void) {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);
  int N;
  std::cin >> N;
  std::vector<int> a(9);
  for (int i = 0; i < N; i++) {
    int b;
    std::cin >> b;
    int clr = b / 400;
    a[clr]++;
  }
  int kinds = 0;
  for (int i = 0; i < 8; i++)
    if (a[i] != 0) kinds++;
  int kmin = 0, kmax = 0;
  if (kinds == 0 && a[8] != 0)
    kmin = 1;
  else
    kmin = kinds;
  kmax = std::min(8, kinds + a[8]);
  std::cout << kmin << " " << kmax << std::endl;
  return 0;
}
