#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[a[i] / 400]++;
  }
  int Min, Max;
  int cnt = 0;
  for (int i = 0; i < (8); ++i) {
    if (color[i] != 0) cnt++;
  }
  if (color[8] == 0) {
    Min = Max = cnt;
  } else {
    Min = cnt;
    Max = min(Min + color[8], 8);
  }
  cout << Min << ' ' << Max << endl;
}
