#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
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;
}
int main() {
  long long N;
  cin >> N;
  map<long long, bool> A;
  long long colorful = 0;
  for (int i = 0, i_len = (N); i < i_len; ++i) {
    long long a;
    cin >> a;
    if (0 <= a && a <= 399)
      A[0] = true;
    else if (400 <= a && a <= 799)
      A[1] = true;
    else if (800 <= a && a <= 1199)
      A[2] = true;
    else if (1200 <= a && a <= 1599)
      A[3] = true;
    else if (1600 <= a && a <= 1999)
      A[4] = true;
    else if (2000 <= a && a <= 2399)
      A[5] = true;
    else if (2400 <= a && a <= 2799)
      A[6] = true;
    else if (2800 <= a && a <= 3199)
      A[7] = true;
    else
      colorful++;
  }
  long long min = 0, max = colorful;
  for (int i = 0, i_len = (8); i < i_len; ++i) {
    if (A[i]) {
      min++;
      max++;
    }
  }
  cout << min << " " << max << endl;
}
