#include <bits/stdc++.h>
using namespace std;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  unsigned char colors = 0;
  int cnt = 0;
  for (int i = 0, i_len = (n); i < i_len; ++i) {
    cin >> a[i];
    if (a[i] < 3200)
      colors |= (1ll << (a[i] / 400));
    else
      ++cnt;
  }
  int cs = 0;
  for (int i = 0, i_len = (8); i < i_len; ++i) {
    if (colors & (1ll << (i))) ++cs;
  }
  if (!cs && cnt) cs = 1;
  cout << cs << " " << cs + cnt << endl;
  return 0;
}
