#include <bits/stdc++.h>
int main() {
  int n, some = 0;
  int count = 0;
  std::map<int, int> m;
  std::cin >> n;
  for (int i = 0; i < n; i++) {
    std::cin >> some;
    if (some / 400 > 7) {
      m[8]++;
    } else {
      m[some / 400]++;
    }
  }
  if (m[8] == 0) {
    for (int i = 0; i < 7; i++) {
      if (m[i] != 0) {
        count++;
      }
    }
    std::cout << count << " " << count << std::endl;
    return 0;
  } else {
    for (int i = 0; i < 7; i++) {
      if (m[i] != 0) {
        count++;
      }
    }
    std::cout << count << " ";
    if (8 - count >= m[8]) {
      count += m[8];
      std::cout << count << std::endl;
    } else {
      count = 8;
      std::cout << count << std::endl;
    }
  }
}
