#include <bits/stdc++.h>
int main() {
  int N;
  std::cin >> N;
  int a[100];
  for (int i = 0; i < N; ++i) {
    std::cin >> a[i];
  }
  int col[13]{};
  for (int i = 0; i < N; ++i) {
    col[(a[i] / 400)] += 1;
  }
  int colcount = 0;
  for (int i = 0; i < 8; ++i) {
    colcount += (col[i] ? 1 : 0);
  }
  int colfree = 0;
  for (int i = 8; i < 13; ++i) {
    colfree += col[i];
  }
  std::cout << colcount << ' ' << colcount + colfree << std::endl;
  return 0;
}
