#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) cin >> a[i];
  vector<bool> b(8, false);
  int c = 0, ans = 0;
  for (int i = 0; i < N; i++) {
    int x = a[i], y = x / 400;
    if (y >= 8)
      c++;
    else
      b[y] = true;
  }
  for (int i = 0; i < 8; i++) {
    if (b[i] == true) ans++;
  }
  cout << ans << ' ' << ans + c << endl;
  return 0;
}
