#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
template <class T>
void print(const T& x) {
  cout << x << endl;
}
template <class T, class... A>
void print(const T& first, const A&... rest) {
  cout << first << " ";
  print(rest...);
}
struct PreMain {
  PreMain() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
  }
} premain;
int main() {
  int n;
  cin >> n;
  int ookii = 0;
  int a[8];
  for (int(i) = 0; (i) < (int)(8); ++(i)) a[i] = 0;
  for (int(i) = 0; (i) < (int)(n); ++(i)) {
    int ab;
    cin >> ab;
    if (ab < 3200) {
      a[ab / 400]++;
    } else {
      ookii++;
    }
  }
  int syurui = 0;
  for (int(i) = 0; (i) < (int)(8); ++(i)) {
    if (a[i] > 0) syurui++;
  }
  if (syurui == 0)
    cout << "1" << ookii << endl;
  else
    cout << syurui << " " << syurui + ookii << endl;
  return 0;
}
