#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N;
  cin >> N;
  int co[13];
  int a[N];
  memset(co, 0, sizeof(co));
  ;
  for (int i = 0; i < N; ++i) {
    cin >> a[i];
    co[a[i] / 400]++;
  }
  int cou = 0;
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (co[i] > 0) ans++;
  }
  for (int i = 8; i < 13; i++) {
    if (co[i] > 0) cou += co[i];
  }
  cout << (ans) << " " << (min(ans + cou, 12)) << "\n";
  return 0;
}
