#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n, m = 0;
  cin >> n;
  vector<bool> cnt(13, false);
  int ans = 0;
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    int b = a / 400;
    cnt[b] = true;
    if (b >= 8) {
      m++;
    }
  }
  for (int i = 0; i < (8); ++i) {
    if (cnt[i] == true) ans++;
  }
  if (n == m) {
    cout << 1 << " ";
  } else {
    cout << ans << " ";
  }
  for (int i = 0; i < (m); ++i) {
    if (ans < 8) ans++;
  }
  cout << ans << endl;
}
