#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int N, a[10], F, b;
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> b;
    if (b >= 3200)
      F++;
    else
      a[b / 400]++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) ans++;
  }
  printf("%d %d\n", max(1, ans), min(8, ans + F));
}
