#include <bits/stdc++.h>
using namespace std;
const int INF = 1001001001;
const int MOD = 1e9 + 7;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, 1, 0, -1};
template <class T>
inline bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  cin.tie(0), ios::sync_with_stdio(false);
  int n;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < int(n); i++) {
    int a;
    cin >> a;
    mp[min(a / 400, 8)]++;
  }
  int mn = 0;
  for (int i = 0; i < int(8); i++) {
    if (mp[i]) mn++;
  }
  if (mn != 0) {
    cout << mn << " ";
  } else {
    cout << 1 << " ";
  }
  cout << min(8, mn + mp[8]);
  cout << endl;
  return 0;
}
