#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N;
  cin >> N;
  int b = 0;
  vector<int> C(8);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a < 8) {
      C[a]++;
    } else {
      b++;
    }
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    cnt += C[i] > 0 ? 1 : 0;
  }
  cout << (cnt != 0 ? cnt : 1) << " ";
  cout << min(8, cnt + b) << '\n';
  return 0;
}
