#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, e, d = 0;
  cin >> a;
  vector<int> c(9);
  for (int i = 0; i < (int)(9); ++i) c[i] = 0;
  for (int i = 0; i < (int)(a); ++i) {
    cin >> b;
    e = b / 400;
    if (e < 10)
      c[9]++;
    else
      c[e]++;
  }
  for (int i = 0; i < (int)(8); ++i) {
    if (c[i] != 0) d++;
  }
  if (d == 0) d++;
  cout << d << " " << d + c[8];
}
