#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 29;
const double EPS = 1e-9;
const int dx[] = {1, 0, -1, 0, 1, 1, -1, -1},
          dy[] = {0, -1, 0, 1, 1, -1, -1, 1};
int main() {
  int N;
  cin >> N;
  int king = 0;
  vector<int> cnt(8);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 400)
      cnt[0]++;
    else if (a < 800)
      cnt[1]++;
    else if (a < 1200)
      cnt[2]++;
    else if (a < 1600)
      cnt[3]++;
    else if (a < 2000)
      cnt[4]++;
    else if (a < 2400)
      cnt[5]++;
    else if (a < 2800)
      cnt[6]++;
    else if (a < 3200)
      cnt[7]++;
    else
      king++;
  }
  int c = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) c++;
  }
  cout << c << " " << c + king << endl;
  return 0;
}
