#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
signed main() {
  long long x = 0, y = 0, z = 0;
  std::cin >> x;
  std::vector<long long> v(9, 0);
  for (long long i = 0; i < (long long)(x); ++i) {
    std::cin >> y;
    if (y < 400)
      v[0]++;
    else if (y < 800)
      v[1]++;
    else if (y < 1200)
      v[2]++;
    else if (y < 1600)
      v[3]++;
    else if (y < 2000)
      v[4]++;
    else if (y < 2400)
      v[5]++;
    else if (y < 2800)
      v[6]++;
    else if (y < 3200)
      v[7]++;
    else
      v[8]++;
  }
  for (long long i = 0; i < (long long)(8); ++i) {
    if (v[i] > 0) z++;
  }
  std::cout << z << " " << z + v[8] << '\n';
}
