#include <bits/stdc++.h>
using namespace std;
long long N, M, ans, r, a, col[8];
pair<long long, long long> bc;
vector<pair<long long, long long>> BC;
int main() {
  vector<long long> A;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    if (a < 3200) {
      for (int j = 0; j < 8; j++) {
        if (a >= 400 * j && a < 400 * (j + 1)) col[j]++;
      }
    } else
      r++;
  }
  for (int i = 0; i < 8; i++) {
    if (col[i] > 0) ans++;
  }
  if (ans + r < 8) {
    M = ans + r;
  } else {
    M = 8;
  }
  if (ans == 0) ans = 1;
  cout << ans << " " << M << endl;
  return 0;
}
