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