#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = (int)1e9 + 7;
const int INF = (int)1e9;
const ll LINF = (ll)1e18;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> b(9, 0);
  for (int i = 0; i < (int)(n); i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8) a = 8;
    b[a]++;
  }
  int ansmin = 0;
  int ansmax = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (b[i] >= 1) {
      ansmin++;
      ansmax++;
    }
  }
  if (b[8]) {
    if (ansmin == 0) ansmin = 1;
    ansmax += b[8];
    if (ansmax >= 9) ansmax = 8;
  }
  cout << ansmin << " " << ansmax << endl;
}
