#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:64000000")
using namespace std;
const int inf = (int)1e9;
const int mod = inf + 7;
const double eps = 1e-9;
const double pi = acos(-1.0);
int get(int x) {
  if (x >= 3200) return 0;
  return x / 400 + 1;
}
int main() {
  int n;
  set<int> second;
  cin >> n;
  int x;
  int cnt = 0;
  while (n--) {
    cin >> x;
    if (get(x) == 0)
      cnt++;
    else
      second.insert(get(x));
  }
  cout << second.size() << " " << min(8, (int)second.size() + cnt) << endl;
  return 0;
}
