#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int dx[4] = {0, 0, -1, 1}, dy[4] = {1, -1, 0, 0};
int main(int argc, char const *argv[]) {
  int a[10] = {}, n, ans = 0;
  std::cin >> n;
  for (int i = 0; i < n; i++) {
    int p;
    std::cin >> p;
    if (p <= 399)
      a[0] = 1;
    else if (p <= 799)
      a[1] = 1;
    else if (p <= 1199)
      a[2] = 1;
    else if (p <= 1599)
      a[3] = 1;
    else if (p <= 1999)
      a[4] = 1;
    else if (p <= 2399)
      a[5] = 1;
    else if (p <= 2799)
      a[6] = 1;
    else if (p <= 3199)
      a[7] = 1;
    else
      a[8]++;
  }
  for (int i = 0; i < 7; i++) {
    ans += a[i];
  }
  if (ans == 0)
    std::cout << "1" << ' ';
  else
    std::cout << ans << ' ';
  std::cout << min(ans + a[8], 8) << '\n';
  return 0;
}
