#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << ": " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << ": " << arg1 << " |";
  __f(comma + 1, args...);
}
const int INF = 1 << 30;
const int MOD = 1e9 + 7;
int a[10];
int main() {
  int n;
  scanf("%d", &n);
  int ret = 0, cnt = 0;
  for (int i = 0; i < n; ++i) {
    int x, k;
    scanf("%d", &x);
    if (x >= 3200) {
      ++cnt;
      continue;
    }
    for (k = 1; k <= 8; ++k) {
      if (x < 400 * k) break;
    }
    a[k]++;
  }
  for (int k = 1; k <= 8; ++k) {
    if (a[k]) ++ret;
  }
  printf("%d %d\n", ret, ret + cnt);
  return 0;
}
