#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
using mp = map<char, int>;
const int MOD = 1e9 + 7;
const int INF = 1001001001;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a < 400) mp[1]++;
    if (400 <= a && a < 800) mp[2]++;
    if (800 <= a && a < 1200) mp[3]++;
    if (1200 <= a && a < 1600) mp[4]++;
    if (1600 <= a && a < 2000) mp[5]++;
    if (2000 <= a && a < 2400) mp[6]++;
    if (2400 <= a && a < 2800) mp[7]++;
    if (2800 <= a && a < 3200) mp[8]++;
    if (3200 <= a) mp[9]++;
  }
  int low = mp.size();
  int high = low;
  if (mp[9] > 0 && low != 1) {
    --low;
    --high;
    if (mp[9] + low <= 8) {
      high += mp[9];
    } else {
      high = 9;
    }
  }
  cout << low << " " << high << "\n";
  return 0;
}
