#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;
  set<int> se;
  int cnt = 0;
  for (int i = 0; i < (int)(n); i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a > 8) a = 8;
    if (a >= 8) cnt++;
    se.insert(a);
  }
  int ansmin = se.size();
  if (cnt >= 1) ansmin--;
  if (ansmin == 0) ansmin++;
  int ansmax = se.size();
  if (cnt >= 1) ansmax += cnt - 1;
  if (ansmax >= 8) ansmax = 8;
  cout << ansmin << " " << ansmax << endl;
}
