#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;
    a /= 400;
    if (a < 8) {
      mp[a]++;
    } else {
      mp[8]++;
    }
  }
  int low = mp.size();
  int high = low;
  if (mp[8] > 0) {
    low--;
    if (mp.size() == 1) {
      low++;
      high = max(1, mp[8] - 1);
    } else {
      high += mp[8];
    }
  }
  cout << low << " " << high << "\n";
  return 0;
}
