#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T = ll>
inline T in() {
  T ret;
  cin >> ret;
  return ret;
}
signed main() {
  int n = in();
  int hist[8] = {};
  for (int i = 0; i < 8; ++i) hist[i] = 0;
  int sp = 0;
  for (ll i = 0, i_len = (n); i < i_len; ++i) {
    int a = in();
    if (a < 3200)
      ++hist[a / 400];
    else
      ++sp;
  }
  int cnt = 0;
  for (ll i = 0, i_len = (8); i < i_len; ++i) {
    if (hist[i] != 0) ++cnt;
  }
  cout << cnt << ' ' << cnt + sp << endl;
}
