#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const int mod = 1000000007;
int main() {
  int n;
  cin >> n;
  vector<int> cnt(9);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    int rate = a / 400;
    if (rate >= 8) rate = 8;
    cnt[rate]++;
  }
  int minv = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i]) minv++;
  }
  int maxv = minv + cnt[8];
  cout << minv << " " << maxv << endl;
}
