#include <bits/stdc++.h>
using namespace std;
int N;
int a[100];
int ans_max = 0;
int ans_min = 0;
int bit_counter(int X) {
  int a = 0;
  while (1) {
    a += X & 1;
    X = X >> 1;
    if (X == 0) return a;
  }
}
void solve() {
  int flags = 0;
  int numof_over3200 = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] >= 3200) {
      numof_over3200++;
    } else {
      int digit = a[i] / 400;
      flags |= (1 << digit);
    }
  }
  ans_min = bit_counter(flags);
  ans_max = ans_min + numof_over3200;
}
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) cin >> a[i];
  solve();
  cout << ans_min << ' ' << ans_max;
  return 0;
}
