#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const int MOD = 1000000007;
const double PI = acos(-1);
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
void solve() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < (n); ++i) cin >> v[i];
  vector<int> u(9);
  for (int i = 0; i < (n); ++i) {
    u[max(v[i] / 400, 8)]++;
  }
  int cnt0 = 0;
  int m = 0;
  for (int i = 0; i < (8); ++i) {
    if (u[i])
      m++;
    else
      cnt0++;
  }
  cout << m << " " << m + min(cnt0, u[8]) << endl;
}
int main() {
  solve();
  return 0;
}
