#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  std::set<int> s;
  std::cin >> n;
  int r = 0;
  for (int i = 0; i < n; i++) {
    int tmp;
    std::cin >> tmp;
    if (3200 <= tmp) {
      r++;
    } else {
      tmp = tmp / 400;
      s.insert(tmp);
    }
  }
  int ss = s.size();
  int x = max(0, r - ss);
  std::cout << ss + x << " " << ss + r << std::endl;
}
