#include <bits/stdc++.h>
using namespace std;
bool color[8];
void solve() {
  int n;
  cin >> n;
  int cnt = 0;
  for (int i = 0; i < 8; i++) color[i] = false;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    cnt += (x >= 3200);
    if (x < 3200) {
      for (int j = 0; j <= 2800; j += 400) {
        if (x >= j && x <= j + 399) {
          color[j / 400] = true;
          break;
        }
      }
    }
  }
  int used = 0;
  for (int i = 0; i < 8; i++) used += color[i];
  if (used == 0) {
    cout << 1;
    return;
  }
  cout << used << ' ' << used + cnt;
}
int main() {
  ios::sync_with_stdio(false);
  int q = 1;
  while (q--) solve();
}
