#include <bits/stdc++.h>
using namespace std;
const long long LMAX = (1LL << 61);
const int IMAX = (1 << 29);
const int BIG = 104206970;
const int PRIME = 104206969;
const int N = 9;
const long long MOD = 1e9 + 7;
int n, cat[N];
void categorize(int x) {
  if (x / 400 > 7)
    cat[8]++;
  else
    cat[x / 400]++;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    categorize(x);
  }
  int min_ans = 0, z = 0;
  for (int i = 0; i < N - 1; i++) {
    if (cat[i] == 0)
      z++;
    else
      min_ans++;
  }
  cout << min_ans << ' ' << min_ans + min(z, cat[8]) << endl;
  return 0;
}
