#include <bits/stdc++.h>
using namespace std;
long long x[9];
long long min(long long a, long long b) {
  if (a > b) return a;
  return b;
}
signed main() {
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    long long a;
    cin >> a;
    a /= 400;
    a = min(a, 8);
    x[a]++;
  }
  long long cnt = 0;
  for (long long i = 0; i < 8; i++)
    if (x[i] > 0) cnt++;
  cout << cnt << " " << cnt + x[8] << endl;
  return 0;
}
