#include <bits/stdc++.h>
using namespace std;
int N;
set<int> ratings;
int M;
int main() {
  cin >> N;
  for (int i = 0; i < N; ++i) {
    int temp = 0;
    cin >> temp;
    if (temp >= 3200) {
      ++M;
    } else {
      int r = temp / 400;
      ratings.insert(r);
    }
  }
  cout << ratings.size() << " ";
  cout << (ratings.size() + M) << endl;
  return 0;
}
