#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a.at(i);
  }
  vector<bool> b(8, false);
  int count = 0;
  for (int i = 0; i < N; i++) {
    if (a.at(i) < 400)
      b.at(0) = true;
    else if (a.at(i) < 800)
      b.at(1) = true;
    else if (a.at(i) < 1200)
      b.at(2) = true;
    else if (a.at(i) < 1600)
      b.at(3) = true;
    else if (a.at(i) < 2000)
      b.at(4) = true;
    else if (a.at(i) < 2400)
      b.at(5) = true;
    else if (a.at(i) < 2800)
      b.at(6) = true;
    else if (a.at(i) < 3200)
      b.at(7) = true;
    else
      count++;
  }
  int ans = 0;
  for (int i = 0; i < 8; i++) {
    if (b.at(i)) ans++;
  }
  cout << ans << ' ' << ans + count << endl;
}
