#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long LLINF = 1e18;
const long long MOD = 1e9 + 7;
template <class T>
void puts(T x) {
  std::cout << x << std::endl;
}
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;
}
bool color[8];
int main() {
  int n, a[100];
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] < 400)
      color[0] = 1;
    else if (a[i] < 800)
      color[1] = 1;
    else if (a[i] < 1200)
      color[2] = 1;
    else if (a[i] < 1600)
      color[3] = 1;
    else if (a[i] < 2000)
      color[4] = 1;
    else if (a[i] < 2400)
      color[5] = 1;
    else if (a[i] < 2800)
      color[6] = 1;
    else if (a[i] < 3200)
      color[7] = 1;
    else
      cnt++;
  }
  int n_min = 0;
  for (int i = 0; i < 8; i++)
    if (color[i]) n_min++;
  cout << n_min << ' ' << min(n_min + cnt, 8) << endl;
}
