#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[N];
  int b[8];
  for (int i = 0; i < 8; ++i) {
    b[i] = -1;
  }
  int point = 0;
  for (int i = 0; i < N; ++i) {
    cin >> a[i];
    if (a[i] >= 3200)
      point += 1;
    else {
      for (int j = 0; j < 8; ++j) {
        if (a[i] >= 400 * j && a[i] <= 400 * j + 399) b[j] = 1;
      }
    }
  }
  int count = 0;
  for (int i = 0; i < 8; ++i) {
    if (b[i] > 0) count += 1;
  }
  if (count = 0)
    cout << 1 << " ";
  else
    cout << count << " ";
  if (count + point <= 8)
    cout << count + point << endl;
  else
    cout << 8 << endl;
  return 0;
}
