#include <bits/stdc++.h>
int main() {
  int N;
  bool colors[8] = {};
  int m = 0, M = 0;
  std::cin >> N;
  for (int i = 0; i < N; i++) {
    int x;
    std::cin >> x;
    if (x >= 3200)
      M++;
    else
      colors[x / 400] = true;
  }
  for (int i = 0; i < 8; i++)
    if (colors[i]) m++;
  if (!m) m = 1;
  M += m;
  std::cout << m << ' ' << M;
  return 0;
}
