#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
long long func2(long long n) {
  long long res = 0;
  while (n % 2 == 0) {
    n /= 2;
    res++;
  }
  return res;
}
long long zyou(long long a, long long b) {
  long long res = 1;
  for (int i = 1; i <= b; i++) {
    res *= a;
  }
  return res;
}
struct Edge {
  int to;
  int weight;
  Edge(int t, int w) : to(t), weight(w) {}
};
using Graph = vector<vector<int>>;
long long calc(long long a, long long b, long long p) {
  if (b == 0)
    return 1;
  else if (b % 2 == 0) {
    long long d = calc(a, b / 2, p);
    return (d * d) % p;
  } else if (b % 2 == 1) {
    return (a * calc(a, b - 1, p)) % p;
  }
}
bool is_prime(int n) {
  if (n == 1) return false;
  for (int i = 2; i * i <= n; i++) {
    if (n % i == 0) return false;
  }
  return true;
}
bool palin(string S) {
  int n = S.size();
  bool flag = true;
  if (n % 2 == 0) {
    for (int i = 0; i <= n / 2 - 1; i++) {
      if (S[i] != S[n - i - 1]) {
        flag = false;
        break;
      }
    }
  } else if (n % 2 == 1) {
    for (int i = 0; i <= n / 2 - 1; i++) {
      if (S[i] != S[n - i - 1]) {
        flag = false;
        break;
      }
    }
  }
  return flag;
}
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < (int)(N); i++) {
    cin >> a[i];
  }
  vector<int> color(9);
  for (int i = 0; i < (int)(N); i++) {
    if (a[i] <= 399) color[0] = 1;
    if (a[i] >= 400 && a[i] <= 799) color[1] = 1;
    if (a[i] >= 800 && a[i] <= 1199) color[2] = 1;
    if (a[i] >= 1200 && a[i] <= 1599) color[3] = 1;
    if (a[i] >= 1600 && a[i] <= 1999) color[4] = 1;
    if (a[i] >= 2000 && a[i] <= 2399) color[5] = 1;
    if (a[i] >= 2400 && a[i] <= 2799) color[6] = 1;
    if (a[i] >= 2800 && a[i] <= 3199) color[7] = 1;
    if (a[i] >= 3200) color[8]++;
  }
  int mi = 0;
  int ma = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (color[i]) mi++;
  }
  ma = mi + color[8];
  cout << mi << " " << ma << endl;
}
