#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T, class U>
ostream& operator<<(ostream& o, const pair<T, U>& p) {
  o << "(" << p.first << "," << p.second << ")";
  return o;
}
template <class T>
ostream& operator<<(ostream& o, const vector<T>& v) {
  o << "[";
  for (T t : v) {
    o << t << ",";
  }
  o << "]";
  return o;
}
int main() {
  int ct[9] = {};
  int n;
  cin >> n;
  for (int(i) = 0; (i) < (int)(n); ++(i)) {
    int a;
    cin >> a;
    a = min(8, a / 400);
    ++ct[a];
  }
  int x = 0;
  for (int(i) = 0; (i) < (int)(8); ++(i)) x += (ct[i] > 0);
  printf("%d %d\n", x, x + ct[8]);
  return 0;
}
