#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-9;
const int INF = 1e9;
const int MOD = 1e9 + 7;
const long long LINF = 1e18;
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;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  int flg = 0;
  int cnt = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      cnt++;
    else if (a >= 2800)
      flg |= (1 << 1);
    else if (a >= 2400)
      flg |= (1 << 2);
    else if (a >= 2000)
      flg |= (1 << 3);
    else if (a >= 1600)
      flg |= (1 << 4);
    else if (a >= 1200)
      flg |= (1 << 5);
    else if (a >= 800)
      flg |= (1 << 6);
    else if (a >= 400)
      flg |= (1 << 7);
    else
      flg |= (1 << 8);
  }
  int temp = 0;
  for (int i = 0; i < 8; i++) {
    if (flg & (1 << i)) temp++;
  }
  cout << temp << " " << temp + cnt << endl;
}
