#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(9, 0);
  for (int i = 0; i < N; i++) {
    int x;
    cin >> x;
    if (x / 400 >= 8) {
      x = 3200;
    }
    a[x / 400]++;
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (a[i] != 0) {
      count++;
    }
  }
  cout << max(1, count) << " " << min(count + a[8], 8) << endl;
  return 0;
}
