#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
int main() {
  int n, cnt = 0, tmp = 0, ans;
  bool f[8] = {};
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 3200) {
      f[a[i] / 400] = true;
    } else {
      tmp++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (f[i]) {
      cnt++;
    }
  }
  if (cnt == 0) {
    cnt++;
  }
  cout << cnt << " " << cnt + tmp << endl;
  return 0;
}
