#include <bits/stdc++.h>
int main() {
  int a[10] = {0};
  int n, nrs = 0, special = 0;
  std::cin >> n;
  for (int i = 0; i < n; ++i) {
    int x;
    std::cin >> x;
    for (int j = 400; j <= 3200; j += 400)
      if (x < j) {
        ++a[j / 400];
        if (a[j / 400] == 1) ++nrs;
        break;
      }
    if (x > 3199) ++special;
  }
  std::cout << std::max(nrs, 1) << " ";
  std::cout << std::min(8, nrs + special);
}
