#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long MOD = 1e9 + 7;
double EPS = 1e-8;
int a[] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
int b(int c) {
  for (int i = (0); i < (int)(8); i++)
    if (c < a[i]) return i;
  return 8;
}
int main() {
  int n;
  cin >> n;
  vector<int> v(9);
  for (int i = (0); i < (int)(n); i++) {
    int d;
    cin >> d;
    v[b(d)]++;
  }
  int sum = 0LL;
  for (int i = (0); i < (int)(8); i++) sum += v[i];
  cout << max(1, sum) << " " << sum + v[8] << endl;
}
