#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int N, F, b, cnt;
set<int> a;
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> b;
    if (b >= 3200)
      F++;
    else
      a.insert(b / 400);
  }
  cnt = a.size();
  printf("%d %d\n", max(1, cnt), min(8, cnt + F));
}
