#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
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;
  if (N == 1)
    cout << 1 << endl;
  else {
    vector<bool> a(8, false);
    int tmp;
    int ct = 0;
    for (int i = 0; i < N; i++) {
      cin >> tmp;
      tmp /= 400;
      if (tmp >= 8)
        ct++;
      else
        a[tmp] = true;
    }
    int min = 0;
    int max = 0;
    for (int i = 0; i < 8; i++)
      if (a[i]) min++;
    max = min + ct;
    cout << min << " " << max << endl;
  }
}
