#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline T GCD(T a, T b) {
  T c;
  while (b != 0) {
    c = a % b;
    a = b;
    b = c;
  }
  return a;
}
template <typename T>
inline T LCM(T a, T b) {
  T c = GCD(a, b);
  a /= c;
  return a * b;
}
template <typename T>
inline T nCr(T a, T b) {
  T i, r = 1;
  for (i = 1; i <= b; i++) {
    r *= (a + 1 - i);
    r /= i;
  }
  return r;
}
template <typename T>
inline T nHr(T a, T b) {
  return nCr(a + b - 1, b);
}
template <typename T>
inline T POW(T a, T b) {
  int i, r = 1;
  for (i = 1; i <= b; i++) {
    r *= a;
  }
  return r;
}
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n, a[100];
  bool color[8];
  for (int i = 0; i < 8; i++) color[i] = 0;
  cin >> n;
  int free = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[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
      free++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) cnt++;
  }
  cout << max(cnt, free) << ' ' << min(8, cnt + free) << "\n";
  return 0;
}
