#include <bits/stdc++.h>
using namespace std;
using lint = long long;
using P = pair<int, int>;
using vec = vector<int>;
using mat = vector<vector<int>>;
constexpr int MOD = 1000000007;
const int INF = 1 << 30;
int main() {
  int n;
  cin >> n;
  vec a(n);
  for (int i = 0; i < (int)(n); i++) cin >> a[i];
  int mi = 0;
  vec c(9, 0);
  for (int i = 0; i < (int)(n); i++) {
    if (a[i] >= 3200) {
      c[8]++;
    } else {
      c[a[i] / 400]++;
    }
  }
  for (int i = 0; i < (int)(8); i++)
    if (c[i] > 0) mi++;
  if (mi == 0) mi = 1;
  int mx = 0;
  for (int i = 0; i < (int)(8); i++)
    if (c[i] > 0) mx++;
  mx = min(8, mx + c[8]);
  printf("%d %d\n", mi, mx);
  return 0;
}
