#include <bits/stdc++.h>
using namespace std;
int N;
set<int> ratings;
int M = 0;
int main() {
  freopen("data.txt", "r", stdin);
  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 << max((int)ratings.size(), 1) << " " << (ratings.size() + M) << endl;
  return 0;
}
