#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int a, long long int b) {
  long int c;
  while (a != 0) {
    c = a;
    a = b % a;
    b = c;
  }
  return b;
}
int main() {
  int n;
  cin >> n;
  set<int> a;
  int over = 0;
  for (int i = 0; i < n; ++i) {
    int temp;
    cin >> temp;
    if (temp >= 3200)
      over++;
    else
      a.insert(temp / 400);
  }
  int count = 0;
  cout << a.size() << " " << min((int)a.size() + over, 8) << endl;
  return 0;
}
