#include <bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
using namespace std;
const long long MOD = 1E+09 + 7;
const long long INF = 1E18;
const int MAX_N = 100;
int N;
int A[MAX_N];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cin >> N;
  int rn = 0;
  unordered_map<int, int> mp;
  for (int i = 0; i < N; i++) {
    cin >> A[i];
    if (A[i] >= 3200) {
      rn++;
    }
    for (int j = 0; j < 3200; j += 400) {
      if (j <= A[i] && A[i] < j + 400) {
        if (mp.count(j)) {
          mp[j]++;
        } else {
          mp.insert(make_pair(j, 1));
        }
      }
    }
  }
  int max = mp.size();
  if (8 - mp.size() > 0 && 8 - mp.size() <= rn) {
    max = 8;
  } else if (8 - mp.size() > 0 && 8 - mp.size() > rn) {
    max = mp.size() + rn;
  }
  cout << mp.size() << " " << max << "\n";
  return 0;
}
