#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int A[9] = {};
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (tmp <= 399)
      A[0]++;
    else if (400 <= tmp and tmp <= 799)
      A[1]++;
    else if (800 <= tmp and tmp <= 1199)
      A[2]++;
    else if (1200 <= tmp and tmp <= 1599)
      A[3]++;
    else if (1600 <= tmp and tmp <= 1999)
      A[4]++;
    else if (2000 <= tmp and tmp <= 2399)
      A[5]++;
    else if (2400 <= tmp and tmp <= 2799)
      A[6]++;
    else if (2800 <= tmp and tmp <= 3199)
      A[7]++;
    else
      A[8]++;
  }
  int cnt = 0, min_value, max_value;
  for (int i = 0; i < 8; i++) {
    if (A[i]) cnt++;
  }
  if (A[8]) {
    if (cnt) {
      min_value = cnt;
      max_value = cnt + A[8];
    } else
      min_value = 1;
  } else
    min_value = max_value = cnt;
  cout << min_value << " " << max_value << endl;
  return 0;
}
