#include <bits/stdc++.h>
using namespace std;
vector<long long> to[1000005];
long long dp[2000000];
int gcd(int a, int b) {
  if (a % b == 0) {
    return (b);
  } else {
    return (gcd(b, a % b));
  }
}
int main() {
  long long a, b, d = 0, e = 0;
  cin >> a;
  vector<long long> c(13, 0);
  for (long long i = 0; i < (long long)(a); ++i) {
    cin >> b;
    c[b / 400]++;
  }
  for (long long i = 0; i < (long long)(8); ++i)
    if (c[i] != 0) d++;
  for (long long i = 0; i < (long long)(5); ++i) e += c[i + 8];
  cout << d << " " << d + e;
}
