#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int main(void) {
  int c, a, cnt = 0, ans, N;
  cin >> N;
  set<int> s;
  for (int i = 0; i < N; i++) {
    cin >> a;
    for (int j = 0; j < 8; j++) {
      if (j * 400 <= a && a <= (j + 1) * 400 - 1) {
        c = j;
      }
    }
    if (a >= 3200) {
      c = 8;
      cnt++;
    }
    s.insert(c);
  }
  int k = s.size();
  if (cnt >= 1) k--;
  ans = k + cnt;
  cout << k << " " << ans << endl;
  return 0;
}
