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