#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int n;
int a[101];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int c[8] = {0};
  int count = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] < 3200) {
      c[(a[i] / 400)] = 1;
    } else {
      count++;
    }
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] == 1) {
      sum++;
    }
  }
  int max, min;
  if (sum == 0) {
    min = 0;
    max = count;
  } else {
    min = sum;
    max = sum + count;
  }
  cout << min << " " << max;
}
