#include <bits/stdc++.h>
using ll = long long;
using ull = unsigned long long;
using P = std::pair<int, int>;
int main(int argc, char *argv[]) {
  int N;
  std::cin >> N;
  std::vector<int> a(N);
  for (int i = 0; i < N; i++) {
    std::cin >> a[i];
  }
  int max = 0;
  int min = 0;
  std::set<int> s;
  int cnt = 0;
  for (int i = 0; i < N; i++) {
    int temp = 0;
    for (int j = 1; j <= 8; j++) {
      if (a[i] >= 3200) {
        cnt++;
        break;
      }
      if (a[i] < 400 * j) {
        temp = a[i] / 400 + 1;
        break;
      }
    }
    s.insert(temp);
  }
  bool flag = true;
  for (int i = 0; i < N; i++) {
    if (a[i] < 3200) {
      break;
    }
    if (i == N - 1) {
      flag = false;
    }
  }
  if (flag) {
    min = s.size() - 1;
    max = s.size() + cnt - 1;
  } else {
    min = 1;
    max = cnt;
  }
  std::cout << min << " " << max << std::endl;
  return 0;
}
