#include <bits/stdc++.h>
using namespace std;
using p = pair<long long, long long>;
long long dx[4] = {-1, 0, 1, 0};
long long dy[4] = {0, 1, 0, -1};
int main(void) {
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) cin >> a[i];
  vector<long long> c(12, 0);
  for (long long i = 0; i < n; i++) {
    long long d = a[i] / 400;
    c[d]++;
  }
  long long count = 0, next = 0;
  for (long long i = 0; i <= 12; i++) {
    if (c[i] > 0 && i <= 7) count++;
    if (c[i] > 0 && i >= 8) next += c[i];
  }
  long long MIN = count;
  long long MAX = count + next;
  if (MAX > 8) MAX = 8;
  cout << MIN << " " << MAX << endl;
  return 0;
}
