#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int cnt = 0;
  set<int> S;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int A;
    cin >> A;
    if (A >= 3200) {
      cnt++;
      continue;
    }
    int B = A / 400;
    S.insert(B);
  }
  cout << S.size() << " " << S.size() + cnt << endl;
  return 0;
}
