#include <bits/stdc++.h>
using namespace std;
using ull = unsigned long long;
using ll = long long;
struct __INIT {
  __INIT() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(15);
  }
} __init;
int main() {
  int N;
  cin >> N;
  vector<int> H(N);
  for (int i = 0; i < N; i++) cin >> H[i];
  vector<int> c(10, 0);
  int over = 0;
  for (int i = 0; i < N; i++) {
    if (H[i] >= 3200) {
      over++;
      continue;
    }
    for (int j = 0; j <= 7; j++) {
      if (j * 400 <= H[i] and H[i] < (j + 1) * 400) c[j] = 1;
    }
  }
  int sum = 0;
  for (int i = 0; i < 10; i++) sum += c[i];
  cout << sum << endl;
  cout << min(sum + over, 8) << endl;
}
