#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int INF = 1e9 + 7;
const double PI = 3.141592653589793238462643383279;
int N;
int A[9];
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    int R;
    cin >> R;
    int num = R / 400;
    if (num >= 8) {
      A[8]++;
    } else {
      A[num]++;
    }
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (A[i]) {
      cnt++;
    }
  }
  cout << cnt << " " << cnt + A[8] << endl;
  return 0;
}
