#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int A[110];
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  bool L[9];
  int C = 0;
  for (int i = 0; i < N; i++) {
    if (A[i] >= 3200) {
      C++;
    } else {
      L[A[i] / 400] = true;
    }
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (L[i]) {
      ans++;
    }
  }
  int M = ans + C;
  if (ans == 0) {
    cout << 1 << " " << M << endl;
  } else {
    cout << ans << " " << M << endl;
  }
}
