#include <bits/stdc++.h>
using namespace std;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
int main() {
  long long N;
  cin >> N;
  vector<long long> a(N);
  for (int i = 0; i < N; i++) cin >> a[i];
  map<long long, long long> m;
  long long ans = 0, ansm = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] < 3200) {
      m[a[i] / 400]++;
    } else
      ansm++;
  }
  for (int i = 0; i < 8; i++) {
    if (m[i] >= 1) ans++;
  }
  cout << ans << " " << ans + ansm;
  return 0;
}
