#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f, g, h, i, j;
  cin >> a;
  set<int> s;
  int ar[a];
  int ans = 0, sum = 0;
  c = 0, d = 0;
  for (i = 0; i < a; i++) {
    cin >> ar[i];
    if (ar[i] >= 3200) {
      c++;
    } else {
      s.insert(ar[i] / 400);
    }
  }
  ans = s.size() + c;
  sum = s.size();
  cout << sum << " " << ans << endl;
  return 0;
}
