#include <bits/stdc++.h>
using namespace std;
using LL = long long;
set<int> s;
int bigc = 0;
int main(void) {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a >= 3200) {
      bigc++;
    } else {
      s.insert(a / 400);
    }
  }
  cout << min<int>(s.size(), 1) << " " << s.size() + bigc << endl;
  return 0;
}
