#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  int a[N + 5], b[14];
  int count = 0, k = 0, red = 0;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] >= 3200) {
      red++;
    }
  }
  for (int i = 0; i < 14; i++) b[i] = 0;
  for (int j = 399; j <= 4799; j = j + 400) {
    for (int i = 0; i < N; i++) {
      if (j < 3200) {
        if (j - 400 < a[i] && a[i] <= j) {
          count++;
        }
      }
    }
    b[k] = count;
    count = 0;
    k++;
  }
  int min = 0, max = 0;
  for (int i = 0; i < 8; i++) {
    if (b[i] > 0) {
      min++;
      max++;
    }
  }
  cout << min << " " << max + red << endl;
}
