#include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
  int v;
  istringstream sin(s);
  sin >> v;
  return v;
}
template <class T>
inline string toString(T x) {
  ostringstream sout;
  sout << x;
  return sout.str();
}
int x[8];
int main() {
  int n;
  cin >> n;
  for (int i = (0); i < (n); ++i) {
    int a;
    cin >> a;
    x[a / 400]++;
  }
  int ret = 0;
  for (int i = (0); i < (7); ++i) ret += x[i];
  printf("%d %d\n", (ret == 0) ? 1 : ret, ret + x[7]);
  return 0;
}
