#include <bits/stdc++.h>
using namespace std;
int main() {
  set<int> s;
  int m, M, cnt = 0;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a / 400 < 8)
      s.insert(a / 400);
    else
      cnt++;
  }
  m = s.size();
  M = s.size() + cnt;
  cout << m << " " << M << endl;
}
