#include <bits/stdc++.h>
int dx[4] = {-1, 0, 1, 0};
int dy[4] = {0, 1, 0, -1};
using pii = std::pair<int, int>;
int main() {
  int N;
  std::cin >> N;
  std::vector<int> a(N);
  for (int i = 0; i < N; i++) {
    std::cin >> a[i];
  }
  std::sort(a.begin(), a.end());
  std::vector<int> color(9);
  for (int i = 0; i < N; i++) {
    if (a[i] >= 1 && a[i] <= 399) {
      color[1]++;
    } else if (a[i] >= 400 && a[i] <= 799) {
      color[2]++;
    } else if (a[i] >= 800 && a[i] <= 1199) {
      color[3]++;
    } else if (a[i] >= 1200 && a[i] <= 1599) {
      color[4]++;
    } else if (a[i] >= 1600 && a[i] <= 1999) {
      color[5]++;
    } else if (a[i] >= 2000 && a[i] <= 2399) {
      color[6]++;
    } else if (a[i] >= 2400 && a[i] <= 2799) {
      color[7]++;
    } else if (a[i] >= 2800 && a[i] <= 3199) {
      color[8]++;
    } else {
      color[0]++;
    }
  }
  int ans = 0;
  for (int i = 1; i < 9; i++) {
    if (color[i] > 0) {
      ans++;
    }
  }
  if (ans != 0) {
    std::cout << ans << " " << ans + color[0] << std::endl;
  } else {
    std::cout << ans + color[0] << " " << ans + color[0] << std::endl;
  }
  return 0;
}
