#include <bits/stdc++.h>
using namespace std;
long long gcd(long x, long y) {
  if (y == 0) return x;
  return gcd(y, x % y);
}
long long lcm(long x, long y) { return x * y / gcd(x, y); }
int ctoi(char c) {
  if (c >= '0' && c <= '9') {
    return c - '0';
  }
  return 0;
}
int main() {
  int N, A[110] = {}, r[10] = {};
  cin >> N;
  for (int i = 1; i <= N; i++) {
    cin >> A[i];
    if (A[i] >= 3200) {
      r[8]++;
    } else {
      r[(A[i] / 400)]++;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (r[i] > 0) ans++;
  }
  cout << max(1, ans) << " ";
  cout << min(8, ans + r[8]) << endl;
  return 0;
}
