#include <bits/stdc++.h>
using namespace std;
const int INF = 1001001001;
const long long LINF = 1001001001001001001ll;
const int MOD = 1000000007;
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  vector<int> color(9);
  for (int i = 0; i < (N); ++i) {
    cin >> a[i];
    color[min(a[i] / 400, 8)]++;
  }
  int Min = 0;
  int Max;
  for (int i = 0; i < (8); ++i) {
    if (color[i] != 0) Min++;
  }
  Max = min(Min + color[8], 8);
  cout << Min << ' ' << Max << endl;
}
