#include <bits/stdc++.h>
using namespace std;
template <typename T>
const T INF = numeric_limits<T>::max() / 10;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-11;
int max(int a, int b, int c) { return max(a, max(b, c)); }
int min(int a, int b, int c) { return min(a, min(b, c)); }
long long max(long long x, long long y) { return x > y ? x : y; }
long long min(long long x, long long y) { return x < y ? x : y; }
long long max(long long a, long long b, long long c) {
  return max(a, max(b, c));
}
long long min(long long a, long long b, long long c) {
  return min(a, min(b, c));
}
int main() {
  vector<int> color;
  color.assign(8, 0);
  int n;
  cin >> n;
  int mosa = 0;
  for (int i = 0; i < (int)n; i++) {
    int a;
    cin >> a;
    if (a < 3200) {
      color[a / 400] = 1;
    } else {
      mosa++;
    }
  }
  int cnt = 0;
  for (int i = 0; i < (int)8; i++) {
    cnt += color[i];
  }
  cout << cnt << " " << min(8, cnt + mosa) << endl;
  return 0;
}
