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